How to set up reverse DNS (PTR / FCrDNS)
Last updated: October 27, 2026
Reverse DNS maps an IP address back to a hostname via a PTR record. Forward-confirmed reverse DNS (FCrDNS) means the loop closes both ways: the IP resolves to a name, and that name resolves back to the same IP. Mailbox providers — Gmail and Outlook most visibly — distrust mail from IPs without FCrDNS because virtually all legitimate mail servers have it and most botnet spam does not.
The PTR record lives in a special zone owned by whoever controls the IP block — your hosting provider or ISP, not your DNS host. That is why you cannot add a PTR in the same panel where you manage your domain: for a VPS you set it in the hosting control panel (or a support ticket), for cloud VMs there is usually an API, and for office connections you ask the ISP.
The full chain a strict receiver checks: connecting IP → PTR → hostname → A/AAAA → same IP, and ideally the hostname also matches the HELO/EHLO name your server presents and the banner it shows. Align all three and the 'reverse DNS' warning disappears everywhere.
Not sure if this affects you? Run a free domain audit and see the exact check result.
Run the free domain checkStep by step
Set up the chain
- Pick the hostname your server identifies as, e.g. mail.example.com. This must be a real name in your DNS.
- Create the forward record first: an A record mail.example.com → your server's IPv4 (and AAAA if you send over IPv6).
- Set the PTR with the IP owner: hosting panel (Contabo/Hetzner/OVH: 'Reverse DNS' on the server/ IP page; AWS: request via support for EC2, or use the EIP console; GCP/Azure: similar request flows). Point the IP's PTR at mail.example.com.
- Configure your MTA to HELO as the same name: Postfix smtpd_helo_restrictions/smtpd_banner and myhostname = mail.example.com.
- Wait for DNS propagation, then verify: dig -x <ip> returns mail.example.com, and dig mail.example.com returns the same IP.
IPv6 senders
- If your server sends over IPv6, the IPv6 address needs its own PTR (in the ip6.arpa zone) plus a matching AAAA record — Gmail is strict about PTR on IPv6 and rejects without it.
When you cannot set PTR
- Residential/ISP IPs with fixed generic PTRs: relay through a smart host (your ISP's relay, or an ESP) instead of sending direct-to-MX.
- Shared hosting without PTR control: same answer — relay through a provider whose infrastructure already has clean rDNS.
Copy-paste examples
mail.example.com A 203.0.113.10 mail.example.com AAAA 2001:db8::10
10.113.0.203.in-addr.arpa PTR mail.example.com
dig -x 203.0.113.10 +short → mail.example.com. dig mail.example.com +short → 203.0.113.10
Common mistakes
- Setting PTR in your domain's DNS panel — PTR records do not belong to your zone; they must be set with the IP block owner.
- PTR to a bare domain (example.com) instead of the mail hostname — use the exact name the server HELOs as.
- Missing forward record — PTR without the matching A/AAAA is not forward-confirmed and strict receivers still complain.
- IPv6 without PTR — Gmail hard-rejects IPv6 mail lacking PTR more often than IPv4.
- Generic provider PTR left in place (vmi123.contaboserver.net) — technically resolves, but looks like a default VPS and hurts trust; always customize.
- Forgetting the PTR when migrating to a new server/IP — checklist item for every migration.
FAQ
Do I need PTR if I send through an ESP only?
No — receivers see the ESP's IPs, and ESPs manage their own rDNS. PTR matters when you run your own sending server (VPS, dedicated, on-prem).
My PTR is set but the test still warns. Why?
Check the forward half: the PTR hostname must resolve back to the same IP (FCrDNS). Also confirm your MTA's HELO matches the PTR name — some tools flag a mismatch even when the loop closes.
How long does a PTR change take?
Minutes to a day depending on the provider's zone TTL and how quickly they publish. If dig -x still shows the old value after 24h, re-check the panel or open a ticket.
Can multiple IPs share one PTR hostname?
Yes — many servers can PTR to mail.example.com if that name has multiple A records. The reverse is messier: one IP with multiple PTR names is legal but confuses some checks; keep one PTR per IP.
Does PTR affect SPF/DKIM/DMARC?
Not directly — they are separate checks. But receivers score the whole picture: a server with aligned HELO, clean FCrDNS and passing auth looks like infrastructure run by professionals.
How do I know which IP my server actually sends from?
Send a test email and look at the report's Infrastructure section — the sending IP is extracted from the Received chain, with its PTR and FCrDNS status checked live. On the server itself, curl ifconfig.me shows the outbound IPv4, but NAT and multi-IP setups make the header-based check the reliable one. Confirm the value before setting PTR — pointing the record at the wrong IP is a classic wasted afternoon.
Fixed it? Prove it.
Send a test email and watch every check go green.
Send a test email to verify the fix