What is Reverse DNS (PTR record)?
A DNS record that maps a sending IP address back to a hostname.
How it works in practice
Receivers look up the PTR of the connecting IP and, ideally, check that the hostname resolves forward to the same IP (forward-confirmed reverse DNS). Gmail requires it and rejects mail without it with error 5.7.25. The hostname should also match the one the server uses in its HELO greeting.
How the check works
A normal DNS record maps a name to an IP. A PTR record does the reverse: it maps the IP back to a name. When your server connects, the receiver looks up the PTR of your IP, then looks up that hostname and confirms it resolves to the same IP. That round trip is called forward-confirmed reverse DNS (FCrDNS). For the best result the PTR hostname should also be the name your server gives in its HELO or EHLO greeting, and it should be a name in your own domain.
Who sets it
The PTR record lives in the DNS zone of whoever owns the IP address block, not in your domain's DNS. In practice that is your hosting or cloud provider, and you change it in their control panel or by a support request. Some providers, including large clouds, only allow it once you rent a fixed IP and ask for reverse DNS to be enabled.
What breaks without it
Gmail rejects mail from IPs without a valid PTR record, with an error such as 5.7.25. Other providers score missing or generic reverse DNS (for example a name like ip-203-0-113-25.hosting.example) as a spam signal. The fix is quick once you control the IP, so it is one of the first things to check on a new sending server.
Checking reverse DNS from a terminal
dig -x 203.0.113.25 +short # mail.yourdomain.com. dig mail.yourdomain.com +short # 203.0.113.25 <- must match the IP above
The common mistake
Leaving the default PTR from the hosting provider, which points at a generic name unrelated to your domain.
Frequently asked questions
Can I set a PTR record in my own DNS?
Only if the IP block is delegated to you. Otherwise the owner of the IP, usually the hosting provider, sets it, and you ask them or use their panel.
Should an IP have more than one PTR record?
One is the safe choice. Several PTR records on one IP confuse some receivers, so keep a single hostname that also matches your HELO name.
Does IPv6 need a PTR record as well?
Yes. If you send over IPv6, that address needs its own reverse DNS, and Gmail applies the same requirement to it.
Check it yourself
Related terms
Not sure whether this is what's hurting your inbox placement? A free deliverability review finds the real cause.
How we help: Consulting · Private infrastructure · Managed mailboxes · Monthly support