Reverse DNS lookup: find the hostname behind an IP address
Turn an IP address back into a hostname by querying its PTR record, then confirm the name resolves back to the same address.
What is a reverse DNS lookup?
A normal DNS lookup turns a name into an IP address. A reverse DNS lookup does the opposite: it starts with an IP address and asks which hostname, if any, that address says it belongs to. The answer is stored in a PTR record.
To make the question fit into DNS, the address is written backwards and placed under a special domain. The IPv4 address 8.8.4.4 becomes 4.4.8.8.in-addr.arpa. IPv6 addresses are expanded to all 32 hex digits, reversed one digit at a time and placed under ip6.arpa. The tool above shows the exact name it queried.
Forward-confirmed reverse DNS
A PTR record is only a claim, and whoever controls the address block can write anything into it. So mail servers and security tools run a second check: they look up the hostname and make sure it points back to the same IP. This is called forward-confirmed reverse DNS (FCrDNS), and the "Forward check" column does it for you.
What reverse DNS is used for
Email deliverability
Many receiving mail servers reject or down-rank messages from an IP with no PTR record, or one that fails the forward check. Setting correct reverse DNS on a mail server is one of the first steps in avoiding spam folders.
Reading logs
Server and firewall logs record IP addresses. A hostname such as crawl-66-249-66-1.googlebot.com tells you at a glance who is behind a request.
Network troubleshooting
Traceroute output is much easier to read when the hops have names that show the provider and city. Reverse DNS supplies those names.
Security checks
A hostname that does not match its claimed owner, or an IP with no reverse record at all, can be a sign of a misconfigured or throwaway server.
Frequently asked questions
What is a PTR record?
A PTR (pointer) record maps an IP address back to a hostname. It lives in the special in-addr.arpa zone for IPv4 or the ip6.arpa zone for IPv6.
Why does my IP address have no reverse DNS?
Reverse DNS is optional, and many consumer connections and cloud servers never have it configured. The owner of the IP block, usually your ISP or hosting provider, decides whether a PTR record exists and what it says.
How do I set up reverse DNS for my server?
You cannot add it in your own domain's DNS settings, because the reverse zone belongs to whoever owns the IP block. Ask your hosting provider or ISP to set the PTR record, or look for a "reverse DNS" setting in their control panel. Make the hostname resolve back to the same IP so it passes the forward check.
Is reverse DNS required for sending email?
It is not part of the email standard, but most large mail providers check it. A matching PTR record is a basic requirement for reliable delivery from your own mail server.
What does "forward-confirmed" mean?
It means the hostname in the PTR record also resolves (through an A or AAAA record) to the same IP address you started with. If it does, the reverse record is much more trustworthy.