Reverse DNS Lookup (PTR)

Find the hostname for an IP address and check it resolves back to the same IP (forward-confirmed reverse DNS). Mail servers need this to pass spam checks.

No account needed. Reads public DNS only, live. Nothing you check is saved.

How to use this tool

  1. Enter an IP address, or a hostname to check its IPs.
  2. See the PTR name and whether it points back to the same IP.
  3. Running a mail server? Pass on both is what receivers want to see.

Who sets the PTR record

Not you, usually. The PTR lives in the reverse zone, which belongs to whoever owns the IP: your hosting company, cloud provider or ISP. Set it in their panel (AWS, DigitalOcean, Hetzner all have a field for it) or open a ticket.

For mail, the PTR should be a real name like mail.example.com that resolves back to the IP. Generic names like ip-1-2-3-4.provider.net get scored as spam.

FCrDNS: what Gmail checks

Gmail and Yahoo want the sending IP to have a PTR name, and that name to resolve back to the same IP. That round trip is FCrDNS. Without it Gmail answers 451 4.7.23 or 550 5.7.25.

Use a real name like mail.example.com, not the generic name your host gave you, and make your mail server say the same name in HELO.

You set the PTR in your hosting or cloud panel, not at your DNS host. The forward A record you set at your DNS host as normal.

Reverse DNS guide: PTR records for mail and servers

What is reverse DNS?

Reverse DNS turns an IP address back into a name. It uses PTR records in a special zone: for 203.0.113.10 the name looked up is 10.113.0.203.in-addr.arpa. IPv6 uses ip6.arpa with every hex digit reversed.

How to do a reverse DNS lookup

Enter the IP above. Command line: dig -x 8.8.8.8 +short on Linux and Mac, nslookup 8.8.8.8 on Windows. The tool also checks that the name resolves back to the same IP.

How to set up a PTR record

The PTR is controlled by whoever owns the IP block. On AWS it is a form for Elastic IPs, on DigitalOcean the droplet name becomes the PTR, Hetzner, Linode and Vultr have a field in the panel. For an office internet line, ask your ISP. You can not add it at your normal DNS host.

Reverse DNS for a mail server

Receiving servers check that your sending IP has a PTR and that the name points back to the IP (FCrDNS). Missing or generic PTRs get mail rejected or scored as spam. Set it to the name your server uses in HELO, like mail.example.com, with a matching A record.

Gmail 550 5.7.25 and 451 4.7.23 errors

Gmail returns these when the sending IP has no PTR, or the PTR name does not resolve back to the IP. Fix the PTR at your provider and the matching A record at your DNS host, then send again.

Reverse DNS does not match

Means the PTR name exists but its A record points to another IP, or has no A record. Add or fix the A record of that name so it points to the IP. With IPv6 sending, the same rules apply to the IPv6 address.

Can one IP have multiple PTR records?

Technically yes, but receivers pick one at random, so keep exactly one. A server hosting many domains should use one neutral PTR name that matches its HELO, it does not need one per domain.

Reverse DNS for a home or dynamic IP

Home IPs have generic names from the ISP, like cpe-1-2-3-4.isp.net. Mail sent straight from them is blocked almost everywhere. Send through your provider mail server or a relay instead.

Why reverse DNS lookup is slow or times out

Some IP owners never set up the reverse zone, so the query goes unanswered until it times out. Servers that log hostnames (SSH, some web servers) can feel slow when clients have no PTR. Turn off reverse lookups in that service, like UseDNS no in sshd.

Reverse DNS lookup for IPv6

Enter the IPv6 address as normal. Behind the scenes the lookup reverses every hex digit under ip6.arpa, which is why IPv6 PTR records look so long. Mail servers sending over IPv6 need a PTR there too, Gmail is strict about it.

PTR record example

For IP 203.0.113.25 used by mail.example.com: PTR 25.113.0.203.in-addr.arpa points to mail.example.com, and an A record for mail.example.com points back to 203.0.113.25. Both are needed for FCrDNS.

Reverse DNS on AWS, Azure, Google Cloud and DigitalOcean

AWS: request reverse DNS for an Elastic IP in the EC2 console (the forward record must exist first). Azure: set the reverse FQDN on the public IP resource. Google Cloud: set PTR on the VM network interface. DigitalOcean: the droplet name becomes the PTR, so name it with the full hostname.

Reverse DNS lookup command for many IPs

Linux one liner: for ip in $(cat ips.txt); do echo "$ip $(dig -x $ip +short)"; done. For log files, many tools do this automatically, but turn it off on busy servers to avoid slow DNS calls.

Why reverse DNS shows a different domain

The IP belongs to a hosting company or cloud provider, so the PTR shows their name, like server123.host.net or ec2-1-2-3-4.compute.amazonaws.com. Shared hosting IPs serve many sites but have one PTR.

Reverse DNS and SSH login delays

If SSH logins pause several seconds before the password prompt, the server is doing a reverse lookup on your IP that times out. Set UseDNS no in /etc/ssh/sshd_config and restart sshd.

Is reverse DNS required for a web server?

No. Web visitors never check it. It only matters for mail servers and some logging. Do not spend time on PTR for a web only server.

Find all domains on an IP

Reverse DNS returns only the one PTR name, not every site hosted on the IP. Listing all domains on an IP needs third party databases built from crawling.

Reverse DNS check for email deliverability

Run this on the IP in your sending headers. Pass on PTR and forward match is what Gmail, Yahoo and Microsoft expect. Combine with the blacklist check for the full IP reputation picture.

Who controls in-addr.arpa for my IP?

The regional internet registry delegates reverse zones to whoever holds the IP block: your host, cloud provider or ISP. For your own block, you can run the reverse zone yourself on your DNS host.

PTR record TTL and changes

PTR changes follow the reverse zone TTL, often set by your provider. If a new PTR does not show yet, wait an hour or two and check again. Some providers only update PTR after the matching A record exists.

Check both sides here once the change is live.

Frequently asked questions

No PTR found

The IP owner never set one. For a web server that is fine. For a mail server, ask your provider.

Should the PTR match my domain?

It should match the name your mail server says in HELO, and resolve back. It does not have to be your main domain.

Works for IPv6?

Yes, enter the IPv6 address.

Related tools