PTR Records: Reverse DNS and Why Mail Servers Check It

Intermediate⏱ 3 min readUpdated October 13, 2026

Normal DNS turns a name into an address. Reverse DNS goes the other way: given an IP address, which name does it belong to? Websites barely care. Mail servers care a lot — a sending server without a sensible PTR record is treated as a compromised home computer.

What a PTR record is

PTR records live in special reverse zones: in-addr.arpa for IPv4 and ip6.arpa for IPv6. The address is written backwards, so that the delegation can follow the same left-to-right hierarchy as ordinary names.

25.113.0.203.in-addr.arpa. — The address 203.0.113.25, reversed (25.113.0.203) and placed under in-addr.arpa. Reversing puts the most specific part first, like a hostname.

Point at, tap or tab to a part of the record to see what it does.

Who controls your PTR record

Not your domain's DNS provider. The reverse zone for an address belongs to whoever owns the address block, so the PTR record is set there:

  • VPS and dedicated servers: usually a "Reverse DNS" or "PTR" field next to the IP in the hosting control panel.
  • Cloud platforms: AWS, Google Cloud and Azure set PTR records through a setting or a support request, often only for static IPs.
  • Mail providers (Google Workspace, Microsoft 365, Mailgun and others) handle the PTR records of their own sending servers; you do nothing.
  • Home and office connections: only your internet provider can change it, and many will not on consumer plans.
Watch out: Adding a PTR record in your own domain's DNS zone does nothing: nobody looks there. If your dashboard offers it, it is for reverse zones you have been delegated, which is rare.

Why mail servers care

Receiving servers look up the PTR of the connecting IP, then look up the A or AAAA record of that name. If it leads back to the same IP, the reverse DNS is forward-confirmed (FCrDNS):

Forward-confirmed reverse DNSPTRA203.0.113.25sending servermail.example.com203.0.113.25same IP ✓
The receiving server looks up the PTR of the connecting address, then the A record of that name. Both must lead to the same IP.

No PTR, or a generic one such as 203-0-113-25.dynamic.example-isp.net, is a strong spam signal. Gmail and Yahoo require valid forward and reverse DNS from anyone sending mail to them — see Gmail and Yahoo sender requirements. The name does not have to be in the same domain as your mail, but it must exist and match.

Reverse names for IPv6

IPv6 addresses are written out in full, all 32 hexadecimal digits, reversed one digit at a time. Nobody types these by hand — control panels generate them — but it explains why IPv6 PTR records look so long:

; 2001:db8::25 written out in full, reversed nibble by nibble:
5.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.8.b.d.0.1.0.0.2.ip6.arpa. IN PTR mail.example.com.

Checklist for a mail server

0 of 5 done

Checking reverse DNS

dig -x 203.0.113.25 +short       # reverse: IP → name
# mail.example.com.
dig mail.example.com A +short      # forward: name → IP, must match
# 203.0.113.25
Tip: Most mail problems with PTR records come from IPv6: a server gets a PTR on its IPv4 address, then starts sending over IPv6 without one. Check both.

Frequently asked questions

Where do I set a PTR record?

With whoever owns the IP address: your hosting or cloud provider's control panel, or your internet provider. Not in your domain's DNS zone.

Does a website need a PTR record?

No. Browsers never check reverse DNS. It matters for mail servers and, occasionally, for logging and some network services.

Can one IP address have several PTR records?

It can, but use one: receivers pick one at random, and some reject the connection when the names disagree.

What is forward-confirmed reverse DNS?

The PTR name of an IP resolves back to the same IP. Mail servers use it as a basic check that the sender is a properly configured server.

Try it on your domain

See the theory in practice — run a PTR Lookup for your own domain.