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.
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.
Questions people ask
Sources and further reading
Written by the middle.network team, who build and run these tools. Last checked 2026-11-21.