Skip to content

Glossary · reverse DNS

What is a PTR record?

Quick answer

A PTR record is reverse DNS: it maps an IP address back to a hostname. Mail servers look it up for every connecting IP and expect that hostname to resolve forward to the same IP, a match called forward-confirmed reverse DNS. Gmail requires valid forward and reverse DNS from all senders, and a missing or generic PTR is one of the fastest routes to rejection.

Definition

PTR record (reverse DNS): A DNS record under in-addr.arpa or ip6.arpa that maps an IP address back to a hostname. Receivers expect a sending IP to have a PTR whose hostname resolves forward to the same IP, and Gmail requires it of all senders.

How reverse DNS works

For the IP 192.0.2.25, the PTR record lives at 25.2.0.192.in-addr.arpa, with the octets reversed. IPv6 addresses use the ip6.arpa zone the same way, one hex digit at a time.

The zone belongs to whoever owns the IP block, such as your hosting provider or ISP, not to your domain's DNS host. That is why you set a PTR in the provider's console or by asking them.

Why mail servers check PTR records

Spam from infected home computers comes from IPs with no PTR or with generic names such as 192-0-2-25.dyn.isp.example. A real mail server has a stable, specific hostname like mail.example.com.

Receivers check that the PTR exists, that its hostname resolves back to the same IP, and often that it matches the name the server gave in its HELO or EHLO greeting. A mismatch in any of the three counts against you.

How to set a PTR record for a sending IP

On a cloud server, set the reverse DNS name in the provider's networking settings. On a dedicated IP from an email platform, the platform sets it for you.

Use a hostname on a domain you control, create the matching A record first, and configure your mail server to greet with the same name.

$ dig +short -x 192.0.2.25
mail.example.com.
$ dig +short A mail.example.com
192.0.2.25
Forward-confirmed reverse DNS: the PTR for 192.0.2.25 names mail.example.com, and that name resolves back to 192.0.2.25.

How RocketVerifier handles it

Our free reverse DNS lookup finds the PTR record for any sending IP and confirms forward-confirmed reverse DNS. Our own verification IPs self-test before they carry traffic: port 25 open, forward-confirmed reverse DNS and a HELO name that matches. The email deliverability checker scores SPF, DKIM and DMARC for your domain, and Monitors recheck those records and blocklist status on a schedule with alerts.

Go further

Sources

  1. Google: Email sender guidelines
  2. RFC 5321: Simple Mail Transfer Protocol

FAQ

PTR record: common questions

What bounce do I get without a PTR record?

Gmail rejects mail from IPs with no PTR record with a 550 5.7.25 error. Other providers defer or reject with their own wording, often naming reverse DNS in the reply text.

Do I need to set a PTR if I send through an email platform?

No. On shared IPs and on dedicated IPs the platform owns, it manages reverse DNS. You only set PTR records on IPs you run yourself.

Can one IP have several PTR records?

DNS allows it, but mail servers expect one. Several PTR names make the forward check unpredictable, so give each sending IP exactly one hostname.

Turn definitions into a cleaner list

Verify your first emails in minutes. Credits never expire, and unknown results are always free.

100 free credits · No card required · Credits never expire