-
Notifications
You must be signed in to change notification settings - Fork 3
Usage
Lorenzo Mangani edited this page May 13, 2017
·
2 revisions
Here’s a quick example to set self-expiring Locks using the generic REST API and instant querying from DNS/ENUM clients:
curl http://127.0.0.1:3000/api/set/4416/true/60000
curl http://127.0.0.1:3000/api/set/10.0.0.99/true/60000
dig -t NAPTR 0.0.6.9.2.3.6.1.4.4.e164.arpa @127.0.0.1
curl http://127.0.0.1:3000/api/get/4416
dig -t A 10.0.0.99.blacklist.xx.com @127.0.0.1
curl http://127.0.0.1:3000/api/get/10.0.0.99