Reverse DNS Lookup - Find the Hostname for an IP

Enter an IP address or a mail server hostname to see its PTR record and check that the hostname points back to the same IP.

What is reverse DNS?

Normal DNS turns a name into an IP address. Reverse DNS does the opposite: it turns an IP address back into a hostname. The answer is stored in a PTR (pointer) record under a special name built from the IP, such as 8.8.8.8.in-addr.arpa for IPv4 or a name under ip6.arpa for IPv6.

8.8.8.8.in-addr.arpa.  86400  IN  PTR  dns.google.

Why reverse DNS matters for email

When your server sends email, the receiving server looks up the PTR record of your sending IP. A missing or suspicious PTR record is one of the most common reasons mail is rejected or sent to spam. Gmail’s sender guidelines require every sending IP to have valid forward and reverse DNS.

  • The PTR record must exist. An IP with no reverse DNS looks like an unmanaged or compromised machine.
  • It must be forward-confirmed. The PTR hostname must resolve back to the same IP. This is called forward-confirmed reverse DNS (FCrDNS), and it proves whoever controls the IP also controls the name.
  • It should not look generic. Names like 203-0-113-9.dsl.example-isp.net mark a home or dynamic connection, which spam filters treat with suspicion. Use a name in your own domain, such as mail.example.com.
  • It should match your mail server’s name. Ideally the PTR hostname is the same name your server uses in its SMTP greeting (HELO/EHLO).

What this reverse DNS lookup checks

  • The PTR record for the IP, with its TTL. IPv4 and IPv6 both work.
  • Forward confirmation: whether the PTR hostname points back to the same IP.
  • Generic hostnames that look like an ISP’s automatic naming.
  • Every IP of a hostname: enter mail.example.com and each of its IPv4 and IPv6 addresses is checked.

How to set a PTR record

PTR records are controlled by whoever owns the IP address, not by your domain’s DNS host. That is usually your hosting, cloud or internet provider.

  • Cloud servers and VPS: most providers let you set reverse DNS in the control panel, often called “Reverse DNS” or “PTR”. Some require a support request.
  • Dedicated IPs from a relay service: the service sets the PTR record for you.
  • Office or home connections: ask your internet provider. Many do not allow custom PTR records on residential lines, which is one reason to send through a relay instead.

Before you set it, create the forward record (an A or AAAA record for mail.example.com) so the PTR can be confirmed. Then test the sending side with our SMTP checker.

Reverse DNS lookup from the command line

dig -x 8.8.8.8 +short
nslookup 8.8.8.8
host 8.8.8.8

Frequently asked questions

Enter the IP address in the lookup above. It shows the PTR hostname and checks that the hostname points back to the same IP. On the command line, run dig -x 8.8.8.8 or nslookup 8.8.8.8.

It means the IP’s PTR record points to a hostname, and that hostname’s A or AAAA record points back to the same IP. Mail servers use it as a basic proof that the sender controls both the IP and the name. Without it, mail is often rejected or filtered.

Nobody has set one. PTR records are managed by the owner of the IP address, usually your hosting or internet provider, not your domain’s DNS host. Set it in your provider’s control panel or ask their support.

No. Your domain’s DNS host controls names under your domain, but PTR records live under in-addr.arpa or ip6.arpa, which is delegated to whoever owns the IP block. Only that provider can change them.