What is a PTR record? Reverse DNS for email

A PTR record is the reverse of an A record. An A record says "this name lives at this IP", and a PTR record says "this IP belongs to this name". It is what people mean by reverse DNS, or rDNS.
Mail servers use it as a basic check. When a machine connects and offers mail, the receiver looks up the name behind its IP. A machine with no PTR, or one reading like 203-0-113-10.dyn.isp.net, looks like a home connection or a hijacked computer. Gmail requires a valid PTR from all senders, and many other servers refuse without one.
How it works
Reverse lookups use a special zone in which the numbers of the IP are reversed:
10.113.0.203.in-addr.arpa. 3600 IN PTR mail.example.com.IPv6 uses ip6.arpa in the same spirit, with one label per hexadecimal digit.
The check that matters is called forward-confirmed reverse DNS (FCrDNS). All three must agree:
- The IP's PTR says
mail.example.com. mail.example.comhas an A record pointing back to the same IP.- Ideally, the server introduces itself in SMTP with that same name (
EHLO mail.example.com).
Who can set it
This trips up nearly everyone: you do not set a PTR in your domain's DNS zone. The reverse zone belongs to whoever owns the IP, which means your hosting company or internet provider. Look for "reverse DNS" or "rDNS" in your VPS panel, or open a support ticket.
Most VPS hosts let you set it yourself in a minute. A home connection generally cannot have one at all, which is one of several reasons why mail servers at home rarely work.
Do you need to care?
- If you use Gmail, Microsoft 365 or any mail provider: no. They manage their own IPs and PTRs.
- If you run your own mail server or VPS: yes, it is one of the first things to set up, along with SPF and DKIM.
- If you are starting on a new IP: set it before sending anything, then warm up gradually.
How to check
dig -x 203.0.113.10 +short
dig mail.example.com A +shortThe first command should return your mail hostname. The second should return your IP. To find the sending IP of a message, read its headers.
Frequently asked questions
Does the PTR name have to match my From domain?
No. It needs to be a real name that resolves back to the IP. A provider can use mail.provider.com for all of its customers. Matching your domain is tidy, but DMARC looks at SPF and DKIM, not the PTR.
Can one IP have several PTR records?
Technically yes, but do not do it. Use one. Several names sharing an IP can each point at it with an A record, and the PTR names only one.
How long does a PTR change take?
Like any record, it depends on its TTL, often an hour or several. Your host's panel may take a few minutes to publish the change.
What error do I see with a missing PTR?
Gmail answers with a 550 5.7.25 code, "the IP address sending this message does not have a PTR record". Others often use a generic refusal code that mentions reverse DNS.
If you send through Smailor you do not have to deal with any of this: the servers and their PTR records are managed for you.