Reverse DNS Lookup
Enter an IPv4 address to find the hostname its owner has published for it: the PTR record that mail servers and security tools check.
Jump to toolWhat Is Reverse DNS Lookup?
A reverse DNS lookup finds the hostname for an IP address, the opposite of a normal lookup. It reads the PTR record that the address's owner publishes; mail servers check it, and a missing or generic PTR record is a common reason email is marked as spam.
This tool builds the special reverse lookup name for an IPv4 address, under in-addr.arpa, and returns any PTR hostnames published for it.
How to Find the Hostname for an IP Address
- Enter an IPv4 address such as 8.8.8.8.
- Select Reverse Lookup.
- Read the PTR hostname; if none comes back, the owner of the address has not set one.
How a Reverse Lookup Name Is Built
Reverse DNS keeps hostnames under a special domain, in-addr.arpa for IPv4. To look up 203.0.113.25, the four numbers of the address are reversed and that domain is added, giving 25.113.0.203.in-addr.arpa.
Reversing the order puts the broadest part of the address on the right, as in a domain name, so each registry and provider can be handed the part of the tree that matches its address block. That is why the holder of the IP addresses, not the owner of a domain, controls these records.
Forward DNS vs Reverse DNS
| Forward DNS | Reverse DNS |
|---|---|
| Starts with a name and returns an address | Starts with an address and returns a name |
| Uses A and AAAA records | Uses PTR records |
| Set by whoever runs the domain's DNS | Set by whoever holds the IP address block |
| Lives in the domain's own zone, such as example.com | Lives under in-addr.arpa for IPv4 and ip6.arpa for IPv6 |
Forward-Confirmed Reverse DNS (FCrDNS)
A PTR record alone proves little, because the holder of an address can point it at any name. Mail servers and security tools therefore check both directions: they look up the PTR hostname, then look up that hostname's A record and confirm it returns the original address.
When both directions match, it is called forward-confirmed reverse DNS. For example, if 203.0.113.25 points to mail.example.com, then mail.example.com should point back to 203.0.113.25.
Why Mail Servers Check Reverse DNS
Gmail, Outlook and most other large mailbox providers expect a sending server's IP address to have a PTR record whose hostname resolves back to the same address. Google's sender guidelines make it a requirement for mail sent to Gmail.
A missing PTR record, or a generic one such as a provider's default name for a home connection, often leads to rejected mail or messages in the spam folder. Set the PTR to the hostname your mail server uses when it greets other servers.
Common PTR Problems and How to Fix Them
No PTR record
- The holder of the address has not set one. For your own server, set it in your hosting provider's control panel or ask your provider to add it.
A generic hostname
- The PTR still shows the provider's default name. If you send mail from the address, ask for it to be changed to your own hostname.
PTR and A record disagree
- Update the hostname's A record, or the PTR, so each points to the other.
Several PTR records
- Allowed, but confusing for mail checks. Keep one PTR record per address.
When to Run a Reverse DNS Lookup
- Before sending mail from a new server or IP address.
- After setting up a server, to confirm the provider has applied your PTR record.
- To put names to the IP addresses in firewall and web server logs.
- To spot the provider behind an address, since hostnames often name the network or data centre.
- When investigating abuse, as a quick hint before an IP WHOIS lookup.
References
Disclaimer
Results reflect DNS at the moment of the query. Only the holder of an IP address block can change its PTR records.
Reverse DNS Lookup FAQ
Sending email from this IP?
Check the domain's SPF, DKIM and DMARC records as well.
Related Tools
Tools that often come next after this one