Reverse DNS Lookup1 Credit
Find the hostname behind an IP address or range, check that it resolves back, and see its reverse zone.
The Reverse DNS API finds the hostname an IP address points back to: its PTR records, with their TTLs. It checks that each hostname resolves back to the address (forward-confirmed reverse DNS, which mail servers rely on), flags hostnames that look generated for an address pool, and names the reverse zone that holds the records, with its nameservers and SOA. It takes an IPv4 or IPv6 address, its reverse name (8.8.8.8.in-addr.arpa), or a range of up to 256 addresses.
A CIDR range up to an IPv4 /24 or an IPv6 /120 looks up every address in it, network address first, and answers with one result per address. The slash can be escaped or left as it is: ?ip=192.0.2.0%2F28 and ?ip=192.0.2.0/28 are the same call. Each address has its own status, so one that fails doesn't fail the rest: it is listed in errors and the response is still a 200. A single address that fails (SERVFAIL, or no answer in time) is an error response.
One credit per address answered, a negative answer (no PTR record) included. A single address costs one credit. A range reserves one credit per address and is charged only for the addresses that got an answer, so a full /24 costs at most 256. A batch costs one credit per address answered too.
Each address answered costs 1 credit. Results are cached for up to 10 minutes.
See Authentication for details.
X-API-Key<token>Provide your API key in an HTTP request header.
ip*stringAn IPv4 or IPv6 address, its reverse name (8.8.8.8.in-addr.arpa), or a CIDR range of up to 256 addresses (a /24 or a /120)
1 <= lengthverbose?booleanReturn extra detail: totalElapsed, retries and params, plus each errors entry's detail when the lookup fails.
falsefcrdns?booleanLook each PTR hostname up forward (A for IPv4, AAAA for IPv6) and say whether it resolves back to the address. Up to 10 hostnames per address are checked, 2 per address of a range
trueserver?stringThe DNS server to ask: a public resolver ID (cloudflare, google, quad9), any resolver address or hostname, or authoritative to walk the delegation from the root to the reverse zone's own nameservers. Defaults to Cloudflare
transport?stringDNS transport: udp (a truncated answer is asked again over TCP) or tcp
"udp""udp""tcp"Successful reverse response
application/json- response
tool*stringTool that generated this result
"dns""domain""reverse""site""dnssec""ssl""email""redirect"query*stringThe original query string
requestId*|Unique request identifier that generated this result
timestamp*stringUTC timestamp when the result was generated
elapsed*|Time taken to generate the result in milliseconds
cached*booleanWhether this result was served from cache
totalElapsed?|Returned with verbose. Total time in milliseconds, including retries and any lookups this one made. For a cached result, the time to read it
retries?numberReturned with verbose. Number of retries before the answer, 0 for a cached result
params?Returned with verbose. The query parameters you set that differ from their defaults
results*array<>|One result per address: one for an address, one per address of a range
errors*array<>On a 200, one entry per address of a range whose lookup failed (SERVFAIL, REFUSED, a timeout), naming the address in its message; empty when every address was answered. On any other status, why the request failed. The HTTP status is in the response line only
See Errors for the response format.
invalid_requestinvalid_queryblocked_addressauthentication_failedinvalid_api_keyapi_key_expiredout_of_creditsforbiddenserver_not_foundrate_limitedinternal_errorupstream_timeoutupstream_unreachableupstream_invalidcurl -X GET 'https://api.dns.tools/v1/reverse?ip=8.8.8.8'{ "tool": "reverse", "query": "8.8.8.8", "requestId": "7f29cc58-deb3-4d6e-98be-2d9e7fe43af1", "timestamp": "2026-11-30T03:09:41.095Z", "elapsed": 512, "cached": true, "errors": [], "results": [ { "query": "8.8.8.8", "ip": "8.8.8.8", "name": "8.8.8.8.in-addr.arpa", "found": true, "status": "NOERROR", "rcode": 0, "hostname": "dns.google", "hostnames": [ "dns.google" ], "ptr": [ { "hostname": "dns.google", "ttl": 83777 } ], "fcrdns": { "result": "pass", "checks": [ { "hostname": "dns.google", "addresses": [ "8.8.4.4", "8.8.8.8" ], "match": true } ] }, "generic": null, "zone": { "name": "8.8.8.in-addr.arpa", "nameservers": [ "ns1.google.com", "ns2.google.com", "ns3.google.com", "ns4.google.com" ], "soa": { "mname": "ns1.google.com", "rname": "dns-admin.google.com", "serial": 1032049294, "minimum": 60 }, "classless": false }, "server": "1.1.1.1", "serverName": "one.one.one.one", "serverType": "public" } ]}