Skip to content
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:

Lock Provisioning

Block Prefix for 60 seconds

curl http://127.0.0.1:3000/api/set/4416/true/60000

Block IP for 60 seconds

curl http://127.0.0.1:3000/api/set/10.0.0.99/true/60000

Lock Querying

ENUM e.164 Lookup

dig -t NAPTR 0.0.6.9.2.3.6.1.4.4.e164.arpa @127.0.0.1

REST e.164 Lookup

curl http://127.0.0.1:3000/api/get/4416

DNS IP Lookup

dig -t A 10.0.0.99.blacklist.xx.com @127.0.0.1

REST IP Lookup

curl http://127.0.0.1:3000/api/get/10.0.0.99