Reverse DNS Lookup

Find the hostname behind an IP address

Reverse DNS Lookup

2606:4700:4700::1111

What does a reverse DNS lookup show?

It finds the hostname an IP address points back to, from its PTR records, with the TTL of each one. It then looks each hostname up forward to check that it resolves back to the same address (forward-confirmed reverse DNS), flags hostnames that look generated for an address pool, such as pool-71-243-6-72.example.net, and shows the reverse zone that holds the records, with its nameservers and SOA. It takes an IPv4 or IPv6 address, its in-addr.arpa or ip6.arpa name, or a range of up to 256 addresses.

When do you need reverse DNS?

Mostly for email: receiving servers check that a sending address has a PTR record that resolves back to it, and many reject mail that fails. Reverse DNS also turns the addresses in server logs, firewall alerts and traceroute output into names you can read, and shows who runs an address block. Looking up a whole range is a quick way to check that every server in a subnet has a matching name before it goes live.

Frequently Asked Questions

What is a PTR record, and what is reverse DNS?

Normal DNS turns a name into an address: example.com → 93.184.215.14. Reverse DNS goes the other way, from an address to a name, using a PTR record. The PTR record doesn't sit under the domain. It sits under a special name built from the address, written backwards: 8.8.8.8 becomes 8.8.8.8.in-addr.arpa, and IPv6 addresses get one label per hex digit under ip6.arpa. Whoever controls the address block (usually the hosting provider or ISP, not the domain owner) runs that reverse zone and sets the PTR record.

What is forward-confirmed reverse DNS (FCrDNS), and why do mail servers care?

Anyone who controls a reverse zone can make an address's PTR record say anything, including mail.google.com. Forward-confirmed reverse DNS closes that gap: it looks up the PTR hostname's own A or AAAA records and checks that they include the original address. The check only passes when both sides agree, which means the same party controls both the address and the name.

Mail servers run this check on every connection. A sending server with no PTR record, or one that fails FCrDNS, is a common reason for mail to be rejected or sent to spam. Gmail and Outlook both require it for bulk senders. If you run a mail server, set its PTR record to its hostname and make sure that hostname resolves back to the same address.

Why does an IP address have no PTR record?

Most addresses never get one. A PTR record has to be set by whoever runs the reverse zone for the block, and many providers don't set them unless asked. NXDOMAIN means the reverse name doesn't exist at all. NODATA means the name exists but holds no PTR record. To add or change one, look at the reverse zone and its nameservers in the results: that tells you who to ask. Cloud providers usually let you set it in their console, and ISPs and hosting companies usually set it on request.

How do I look up a whole range of addresses?

Enter the range in CIDR notation, such as 192.0.2.0/28. Any range up to an IPv4 /24 or an IPv6 /120 works, which is at most 256 addresses. You get one row per address, with its status, its hostnames and its forward check, plus counts of how many answered and how many have a PTR record. A failed lookup for one address doesn't stop the rest. On the API, a range costs one credit per address answered.

What is classless reverse delegation?

IPv4 reverse zones split at the dots in the address, so the smallest normal zone covers a whole /24 (256 addresses). When a provider gives a customer a smaller block, such as a /28, it can't hand over part of a zone. RFC 2317 works around this: the provider puts a CNAME at each address's reverse name that points into a zone the customer runs, such as 1.0-15.2.0.192.in-addr.arpa. The customer then sets the PTR records there. When the results mark a zone as classless, that is what happened, and the PTR records are managed by the customer, not the provider.

Domain Intelligence APIs

Get started with our easy-to-use API docs.