How-to guide

Reverse DNS explained: what a PTR record is and how to check one

Why an IP address needs a hostname, how reverse DNS works, and how to fix it when mail is rejected.

Email admins, sysadmins and developers4 min readUpdated
Short answer

Reverse DNS turns an IP address back into a hostname, using a PTR record. Mail servers check it: if the sending IP has no PTR record, or the name doesn’t point back to the same IP, mail is often rejected or sent to spam. The PTR record is set by whoever owns the IP, usually your host or ISP, not in your own domain’s DNS.

How reverse DNS works

A normal DNS lookup turns a name into an address. Reverse DNS goes the other way. The IP is written backwards under a special zone, so 203.0.113.25 becomes 25.113.0.203.in-addr.arpa, and the answer is a PTR (pointer) record holding a hostname. IPv6 uses ip6.arpa in the same way, one hex digit per label.

Those reverse zones belong to whoever holds the address range. That is why you set a PTR record in your cloud, hosting or ISP control panel, not at your domain registrar.

Why mail servers care

  • No PTR record: many receivers refuse the connection or score the mail as spam.
  • Generic PTR, such as 203-0-113-25.dyn.isp.net: reads as a home connection, which many blocklists list on purpose.
  • Mismatch: the PTR name doesn’t resolve back to the same IP. This fails forward-confirmed reverse DNS (FCrDNS), the check most receivers run.
  • Good: a name on your own domain, such as mail.example.com, that resolves back to the sending IP, ideally matching the name your server gives in its SMTP greeting.

How to check and fix it

  • Look up the sending IP with a reverse DNS lookup and confirm the name points back.
  • Missing or wrong? Set the PTR in your provider’s portal (AWS, Azure, Google Cloud and most VPS hosts offer it) or ask your ISP.
  • Create the matching A or AAAA record for that hostname in your own DNS.
  • Using a mail service such as Microsoft 365 or Google Workspace? They manage PTR records for their own servers, so there is nothing to set.
Tip: One IP, one PTR. Several PTR records on one address confuse some receivers.

Questions people ask

What is a PTR record?
A DNS record that maps an IP address to a hostname. It lives in the reverse zone (in-addr.arpa for IPv4, ip6.arpa for IPv6) of whoever owns the address.
Do I need reverse DNS for a website?
No. Browsers don’t check it. It matters for mail servers, and helps when reading logs and traceroutes.
How long does a PTR change take to show?
As long as the old record’s TTL, often an hour or less. Some providers take a few minutes to publish the change first.
What is the difference between reverse DNS and reverse IP lookup?
Reverse DNS returns the one name the IP owner published as a PTR record. A reverse IP lookup, in the sense of “which websites share this IP”, needs separate data about where domains resolve.

Sources and further reading

Written by the middle.network team, who build and run these tools. Last checked 2026-11-21.