Reverse DNS lookup
Find the hostname published for an IP address, then check whether that hostname points back to the same address.
Try 8.8.8.8, 1.1.1.1 or 2001:4860:4860::8888.
How to read the result
The PTR name is what the address owner published. The forward check then looks that name up and compares its addresses with the one you entered. A confirmed result means name and address agree. An unconfirmed result means the name does not resolve back to the address, which is common for generic ISP names and for shared hosting.
Checking a crawler? Follow how to verify Googlebot and other crawler IPs. For the operator behind an address, use the ASN lookup or the full IP lookup.
Use it from code
curl https://ipcheckhq.com/api/v1/ip/8.8.8.8 # reverse_dns field
dig +short -x 8.8.8.8The IP API returns the PTR name in reverse_dns. See the API docs.
Questions
What is a reverse DNS lookup?
Normal DNS turns a name into an address. A reverse lookup asks the opposite question: which name does the owner of this address publish for it? The answer is a PTR record, stored under in-addr.arpa for IPv4 and ip6.arpa for IPv6. The party that controls the address block decides whether the record exists and what it says.
What does forward-confirmed reverse DNS mean?
A PTR name is only a claim by whoever controls the reverse zone. Forward confirmation checks the claim from the other side: look up the name, and see whether its A or AAAA records include the address you started with. When they do, the name and the address vouch for each other. Search engines document this two-step check for verifying their own crawlers; the Googlebot guide walks through it.
Why does an IP address have no PTR record?
Reverse records are optional. Many addresses have none, and consumer ISPs often publish generic names built from the address itself. A missing record says nothing bad about an address. It only means nobody published a name for it.
Does a PTR record prove who owns an IP address?
No. It shows the name the controller of the reverse zone chose, and that name can say anything. Use the ASN lookup and the IP lookup for the network operator, and treat the hostname as a hint.
Can the result differ from dig -x?
Yes. This page asks the DNS resolver our server uses, which may cache answers or see a different view than your resolver. If a record changed recently, the two can disagree until caches expire.