Rest DNS API DNS Resolution over HTTP
IMPORTANT INFORMATION
The public API has been permanently shut down on December 28th, 2015.To continue using StatDNS API after this date, please spin up your own instance.
This is a REST API allowing to perform DNS queries over HTTP, and to get reverse PTR records for both IPv4 and IPv6 addresses. It outputs JSON-encoded DNS responses, and supports both Cross-origin resource sharing (CORS) and JSONP. It can be useful in server-side environments where you cannot perform DNS queries locally, for client-side Web Applications (including Web browser extensions), and for DNS operators.
There is no rate limit of any sort at the moment, and the service is free for everyone to use.
The API powering this site (RRDA) is open source and can be downloaded here or on GitHub .
Errors
When incorrect input is entered, the server returns an HTTP 400 Error (Bad Request), along with a JSON-encoded error message.
When a malformed domain name is entered, the following error message is returned:
{"error":{"code":400,"message":"ERROR: Input string is not a well-formed domain name."}}
When an invalid IP address is entered, the following error message is returned:
{"error":{"code":400,"message":"ERROR: Input string is not a valid IP address."}}
Getting Resources Records
Getting Reverse PTR Records
Action | Command |
---|---|
Get reverse (PTR) record from IPv4 addresses | http://api.statdns.com/x/193.0.6.139 |
Get reverse (PTR) record from IPv6 addresses | http://api.statdns.com/x/2001:67c:2e8:22::c100:68b |