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 .


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

Get Host Address (A records)
Get IPv6 Host Address (AAAA records)
Get Certificate (CERT records)
Get Canonical Name (CNAME records)
Get DHCP Identifier (DHCID records)
Get DNSSEC Lookaside Validation record (DLV records)
Get Delegation name (DNAME records)
Get DNS Key record (DNSKEY records)
Get Delegation Signer (DS records)
Get Host Information (HINFO records)
Get Host Identity Protocol (HIP records)
Get Key eXchanger record (KX records)
Get Location record (LOC records)
Get Mail Exchange record (MX records)
Get Name Authority Pointer (NAPTR records)
Get Name Servers (NS records)
Get Next-Secure record (NSEC records)
Get NSEC record version 3 (NSEC3 records)
Get NSEC3 parameters (NSEC3PARAM records)
Get Option record (OPT records)
Get Pointer record (PTR records)
Get Resource Records Signature (RRSIG records)
Get Start of Authority (SOA record)
Get Sender Policy Framework (SPF records)
Get Service Locator (SRV records)
Get SSH Public Key Fingerprint (SSHFP records)
Get DNSSEC Trust Authorities (TA records)
Get Trust Anchor LINK (TALINK records)
Get TLSA records
Get Text record (TXT records)

Getting Reverse PTR Records

Get reverse (PTR) record from IPv4 addresses
Get reverse (PTR) record from IPv6 addresses