Skip to main content
BytesProbe
Probe. Diagnose. Secure.

Reverse DNS and PTR records for mail servers

Why a sending address needs a PTR record, what forward-confirmed reverse DNS means, and who has to publish it when you do not own the address.

Run the check

Forward DNS answers "what address does this name point to". Reverse DNS answers the opposite: "what name does this address claim". The record that answers it is a PTR record, and for a mail server it is close to mandatory — plenty of receivers will refuse a connection from an address with no PTR at all.

How reverse DNS is structured

PTR records do not live under your domain. They live in a special zone derived from the address itself, under in-addr.arpa for IPv4:

203.0.113.25  becomes  25.113.0.203.in-addr.arpa  PTR  mail.example.com.

The octets are reversed because DNS reads right to left, from most general to most specific, and IP addresses read the other way. IPv6 uses ip6.arpa with each hex digit reversed and dotted, which is why an IPv6 PTR name is so long.

This is the part that catches people out

You almost certainly cannot publish your own PTR record. The reverse zone is controlled by whoever holds the IP address block — your hosting provider, cloud platform or ISP — not by whoever owns the domain name.

So editing your DNS zone will never create a PTR. You have to ask the address holder, and the request is normally made in their control panel:

  • AWS: EC2 requires a request through support for Elastic IPs; SES managed addresses are handled differently.
  • Most VPS providers: a "reverse DNS" or "PTR" field on the IP address in the control panel.
  • Business ISP connections: usually a support request.
  • Residential connections: typically not offered at all, which is one of several reasons not to run a mail server on one.

Forward-confirmed reverse DNS

Having a PTR is not enough on its own. Receivers check what is called forward-confirmed reverse DNS, or FCrDNS, and it requires the two directions to agree:

  1. The PTR for 203.0.113.25 returns mail.example.com.
  2. An A lookup of mail.example.com returns 203.0.113.25.

Both must hold. A PTR pointing at a name that resolves elsewhere is worse than useless — it looks like misconfiguration or an attempt to impersonate. Check the first direction with the reverse DNS lookup and the second with the DNS lookup tool.

Why mail servers care

Reverse DNS is one of the cheapest signals a receiver has. It costs one lookup, it happens before the message body is transferred, and it correlates strongly with whether an address is a legitimate mail server or a compromised machine sending without its owner's knowledge.

Three ways it is used:

  • Outright rejection. Some receivers refuse connections from addresses with no PTR.
  • Spam scoring. Many add points for a missing PTR, or for one that looks automatically generated — names full of the address itself, or containing dynamic, dsl, pool or dhcp, read as consumer connections.
  • Consistency checks. The PTR is compared against the HELO/EHLO name the server announces and against the sending domain. All three agreeing looks like a properly run server.

Note what reverse DNS does not do: it proves nothing about authorisation to send as a domain. That is what SPF, DKIM and DMARC are for. PTR is a reputation signal about the host, not an authentication mechanism, which is why it sits alongside the others rather than replacing any of them.

Setting it up properly

  1. Choose a hostname under a domain you control, and use a real name — mail.example.com, not a generated string.
  2. Publish forward DNS first. An A record for that name pointing at the address, and an AAAA record too if you send over IPv6.
  3. Request the PTR from whoever holds the address, pointing at the same hostname.
  4. Set your mail server's HELO/EHLO to that hostname. A mismatch between PTR and HELO is a frequent, quiet cause of poor delivery.
  5. Verify both directions once DNS has settled.

If you send over IPv6

Treat IPv6 as stricter, because in practice it is. Some large receivers apply tighter authentication requirements to IPv6 senders, and missing reverse DNS on an IPv6 address is a more reliable route to rejection than it is on IPv4. Either publish an AAAA and a matching PTR, or do not send over IPv6 at all.

Troubleshooting

No PTR is returned. Either none has been published, or the delegation of the reverse zone is broken at the provider's end. You cannot tell which from the outside; ask them.

The PTR returns an unexpected generic name. That is the provider's default. It is still a PTR, and it is better than nothing, but a generic name reads as a consumer connection and scores accordingly. Replace it.

A change was requested but nothing changed. Reverse zones have TTLs just like forward ones, often long ones. Give it time, and see what TTL really means if it persists.

PTR and A disagree. Fix the forward record, which you control, and re-check. This is the most common FCrDNS failure and the easiest to repair.

Where this fits

Reverse DNS is one item on a short list that decides whether your mail is accepted: a PTR that forward-confirms, an SPF record that authorises your senders, DKIM signatures that survive forwarding, and a DMARC policy tying them together. The email security checker covers the last three in one pass; this is the one you check with the reverse DNS lookup.

More in the guides index.