Home / Reverse DNS
Reverse DNS Lookup
Find the hostname (PTR record) that belongs to any IPv4 or IPv6 address.
About Reverse DNS
A reverse DNS lookup finds the hostname that an IP address has been assigned, using its PTR record. It is a quick way to see who runs a server (a hosting company, a mail server or a home provider), to confirm that a mail server is configured properly, or to make sense of an unfamiliar address in your logs. Enter an IPv4 or IPv6 address and the lookup returns the PTR record from live DNS.
How reverse DNS works
Forward DNS stores the answer under the domain name. Reverse DNS stores it under the address. For IPv4 the four numbers are written backwards and followed by in-addr.arpa, so a lookup for 203.0.113.25 asks for the PTR record of 25.113.0.203.in-addr.arpa. IPv6 works the same way, one hexadecimal digit at a time, under ip6.arpa. Whoever controls the address block, usually your internet provider or hosting company, controls its PTR records. That is why you set them in your host's control panel and not in your domain's DNS settings.
Check that reverse and forward DNS match
A well-configured mail server has forward-confirmed reverse DNS: the sending IP's PTR record names a host, and that host's A or AAAA record points back to the same IP. Large mail providers such as Gmail check this, and a mismatch is a common reason for rejected or spam-foldered mail. To test yours, run a reverse lookup above, then look up the hostname it returns in the DNS lookup and confirm that the address matches.
Frequently asked questions
What is a reverse DNS lookup?
A normal DNS lookup turns a name into an IP address. A reverse lookup does the opposite: it asks which hostname the owner of an IP address has assigned to it, stored in a PTR record. Many addresses have none, especially home connections.
Why does reverse DNS matter for email?
Mail servers often check that the sending IP has a PTR record that matches the name it announces. A missing or generic record is a common reason legitimate email lands in spam, so mail server owners set it with their hosting provider.