PTR Record: What Reverse DNS Pointer Records Are, Syntax, FCrDNS, and Setup
A DNS PTR (Pointer) record is a reverse DNS resource record that maps an IPv4 or IPv6 address back to a canonical domain hostname, performing the exact opposite job of an A or AAAA record. Mail servers query PTR records to verify sender identity. The reverse zone lives under .in-addr.arpa or .ip6.arpa.
How Do PTR Records Work in .in-addr.arpa and .ip6.arpa Reverse Zones?
A Pointer (PTR) record (IANA Type 12) executes a reverse DNS lookup (rDNS) by resolving a numerical IP address back to a human-readable hostname inside the special .arpa (Address and Routing Parameter Area) top-level domain. Standard forward DNS queries resolve domain labels from right to left (mail.example.com), whereas IP addresses allocate network hierarchy from left to right (198.51.100.25, where 198.51.100 is the network subnet and .25 is the host). Traversal of the DNS tree in hierarchical order requires reversing the IP address segments and appending .in-addr.arpa (for IPv4) or .ip6.arpa (for IPv6). The table below defines the structure and reversal rules of IPv4 and IPv6 PTR records.
The following zone excerpt demonstrates how production PTR records appear with reversed network octets and individual hexadecimal digits:
; 1. IPv4 PTR Record for 198.51.100.25 (Octets reversed + .in-addr.arpa suffix):
25.100.51.198.in-addr.arpa. 3600 IN PTR mail.example.com.
; 2. IPv6 PTR Record for 2001:db8::1 (Expanded to 32 hex nibbles, reversed + .ip6.arpa suffix):
1.0.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. 3600 IN PTR mail.example.com. | Feature / Field | IPv4 Reverse DNS (PTR) | IPv6 Reverse DNS (PTR) |
|---|---|---|
| 1. Dedicated Reverse Zone | .in-addr.arpa. | .ip6.arpa. |
| 2. Owner Label Construction | Reverse the 4 decimal octets (198.51.100.25 becomes 25.100.51.198.in-addr.arpa.). | Expand double colons to all 32 hexadecimal nibbles, insert dots between digits, and reverse all 32 characters. |
| 3. IANA DNS Type Code | Type 12 (0x000C) | Type 12 (0x000C) |
| 4. Target Value (RDATA) | Canonical hostname with a trailing dot (mail.example.com.). | Canonical hostname with a trailing dot (mail.example.com.). |
| 5. Matching Forward Record | A Record mapping mail.example.com to 198.51.100.25. | AAAA Record mapping mail.example.com to 2001:db8::1. |
Administrators rarely reverse IPv4 decimal octets or unpack 32 hexadecimal characters manually. Testing any raw IPv4 or IPv6 address in our PTR (Reverse DNS) Lookup or Reverse IP Lookup (PTR) automatically builds the reverse query string and fetches the canonical hostname.
Who Controls Your PTR Record? (Why You Set It at Your Cloud Host or ISP, Not Your Registrar)
Authority over a PTR record belongs to the organization that owns the allocated IP address block (your cloud hosting provider, VPS provider, data center, or ISP) rather than your domain registrar or forward authoritative DNS host. The table below lists where administrators configure reverse DNS across 6 common hosting and email environments.
| Hosting / Email Environment | Who Controls the Reverse Zone? | Configuration Method and Location |
|---|---|---|
| 1. AWS EC2 Elastic IP | Amazon Web Services | Select Elastic IPs in VPC Console, choose Actions, and click Update reverse DNS (requires a forward A record). |
| 2. DigitalOcean, Vultr, Linode, Hetzner | VPS Cloud Provider | Assign the instance hostname to match your fully qualified domain name (mail.example.com) or edit the Reverse DNS tab. |
| 3. Google Cloud & Microsoft Azure | Cloud Platform Provider | Configure the Public IP Address resource properties by setting the Reverse FQDN or PTR domain name attribute. |
| 4. Dedicated Bare Metal & Colocation | Data Center or ISP | Submit a ticket to your upstream network provider or request classless subnet delegation under RFC 2317. |
| 5. Cloudflare, GoDaddy, Namecheap (Domain DNS) | Does not control your server IP | Adding a PTR record in domain zone management produces zero effect unless your ISP delegates the reverse zone. |
| 6. Google Workspace, Microsoft 365, SendGrid | Managed by the Email Provider | Zero configuration required; the hosted provider maintains PTR records across outbound sending infrastructure. |
Distinguishing provider control boundaries prevents common reverse DNS misconceptions. Administrators hosting virtual servers on AWS, DigitalOcean, or Hetzner while managing domain records in Cloudflare configure PTR records inside the hosting console, never inside Cloudflare. Conversely, organizations sending email through Google Workspace or Microsoft 365 require no PTR setup because providers maintain reverse records across outbound gateways. Identify the network operator of any public IP block using our IP Lookup. The network that announces an IP address also controls its PTR record, and our guide What Is an ASN (Autonomous System Number)? explains how those announcing networks are identified.
What Is Forward-Confirmed Reverse DNS (FCrDNS) and Why Does Email Require It?
Forward-Confirmed Reverse DNS (FCrDNS) is a two-way identity verification protocol where a receiving mail transfer agent validates that your sending IP address matches its reverse PTR hostname, and that the PTR hostname resolves back to that identical IP address across 4 verification steps:
- Accept Connection and Log Banner: The receiving mail server accepts a TCP connection on port 25 from connecting IP
198.51.100.25and captures the hostname announced in the SMTP EHLO greeting (mail.example.com). - Execute Reverse PTR Query: The receiver issues a reverse DNS query for
25.100.51.198.in-addr.arpaagainst public nameservers, extracting the assigned hostname (mail.example.com.). - Execute Forward Confirmation Query: The receiver performs an authoritative forward query (verifiable via our A Record Lookup) for
mail.example.comto retrieve its registered IPv4 address. - Validate Two-Way Cryptographic Parity: The receiver compares the connecting IP against the forward IP resolution. Verification passes only when the forward address matches the connecting IP (
198.51.100.25) and aligns with the SMTP greeting; missing records or generic provider hostnames trigger550-5.7.25rejections.
The following diagram illustrates the circular verification loop required for full FCrDNS authentication:
; Forward-Confirmed Reverse DNS (FCrDNS) Circular Validation Flow:
Reverse Lookup (At IP Host): 198.51.100.25 ---[ PTR ]---> mail.example.com
Forward Lookup (At DNS Host): mail.example.com ---[ A ]---> 198.51.100.25
SMTP Banner (In Mail Software): EHLO mail.example.com (All 3 Match = FCrDNS PASS)
Maintaining valid reverse DNS records on your sending server interface is mandatory for Email Deliverability. In contrast, invoking the obsolete ptr mechanism inside an SPF Record (v=spf1 ptr -all) violates modern standards due to excessive resolver query loads. Outbound sending PTR hostnames operate independently from inbound MX Record configurations whenever outbound and inbound traffic traverse separate physical gateways.
5 Common PTR Record Rules and Mistakes That Cause Email Bounces
Eliminating 550-5.7.25 and 550 5.7.1 delivery errors requires following 5 operational rules across multi-tenant servers, dual-stack networks, and cloud infrastructure:
- Assign Exactly One PTR Record Per IP Address: Multiple forward domain names route to one server IP address, yet each IP address requires exactly one PTR record pointing to the primary mail hostname. Configuring multiple PTR records on a single IP generates randomized responses that break FCrDNS validation.
- Replace Default Generic Cloud Provider Hostnames: Cloud platforms assign generic fallback PTR hostnames like
ec2-198-51-100-25.compute-1.amazonaws.comby default. Major inbox providers classify generic cloud patterns as residential or unconfigured hosts, requiring custom domain replacement (mail.example.com). - Configure IPv6 PTR Records on Dual-Stack Mail Servers: Modern mail transfer agents prioritize IPv6 routing when connecting to providers like Google and Yahoo. Establishing an IPv4 PTR record while omitting the corresponding
.ip6.arparecord on your IPv6 interface produces immediate delivery failures. - Publish the Forward A Record Prior to Creating the Cloud PTR Record: Cloud management APIs at Amazon Web Services, Hetzner, and Microsoft Azure validate forward resolution before writing reverse records, rejecting PTR updates if the target hostname lacks an active forward mapping.
- Synchronize Server Mail Software Banners With the Reverse Hostname: Mail transfer agents like Postfix or Exim broadcast the identical fully qualified domain name in their initial greeting banner (configured via
myhostname = mail.example.com) that external resolvers discover via PTR lookups.
Understanding how reverse delegation operates within the global domain name system illuminates core networking fundamentals, detailed across our comprehensive explanations of How DNS Works and the full hierarchy of DNS Record Types.
How to Check Any IP's PTR Record (dig -x, nslookup, and Browser DoH)
Checking the live PTR record for any IPv4 or IPv6 address and verifying Forward-Confirmed Reverse DNS (FCrDNS) requires running a browser lookup or terminal dig -x command across 3 steps:
# 1. Reverse DNS query using dig -x on Linux / macOS (automatically handles octet reversal):
dig -x 198.51.100.25 +short
# Output: mail.example.com.
# 2. Forward confirmation check to confirm matching forward resolution:
dig mail.example.com A +short
# Output: 198.51.100.25 (Matching IP confirms FCrDNS validity)
# 3. Reverse DNS query on Windows Command Prompt:
nslookup 198.51.100.25 1.1.1.1 - Run Terminal Verification: Query your server's public IPv4 or IPv6 address using
dig -x, which reverses octets or nibbles and appends the.arpasuffix automatically. - Inspect Authoritative Nameservers: Query the reverse mapping through our online tools to inspect responses across recursive resolvers.
- Track Global Nameserver Propagation: Verify that reverse zone updates have cleared regional resolver caching lifetimes (TTL) across our DNS Propagation Checker.
Regular diagnostic inspection guarantees that mail servers maintain pristine Forward-Confirmed Reverse DNS authentication. Managing PTR record (Type 12) configurations properly protects outbound mail server deliverability, secures email identity, and prevents IP reputation degradation.
Frequently asked questions
Why can't I add a PTR record in Cloudflare, GoDaddy, or Namecheap for my server IP?+
The reverse DNS zone (.in-addr.arpa or .ip6.arpa) is controlled by the network operator that owns your IP address block because a PTR record maps an IP address back to a domain name. Your cloud provider (such as AWS, DigitalOcean, Hetzner, or Linode) or ISP manages reverse delegation, meaning domain registrars hold zero authority over server IP addresses.
Do I need to set up a PTR record if I use Google Workspace, Microsoft 365, or SendGrid?+
No, third-party email providers (including Google Workspace, Microsoft 365, SendGrid, and Mailchimp) manage PTR records on their outbound sending infrastructure automatically. Administrators configure custom PTR records exclusively when hosting their own mail transfer agent on a dedicated IP address or virtual private server.
If I host 10 different websites and email domains on one server IP, should I create 10 PTR records for that IP?+
No, in practice you configure only one PTR record per IP address pointing to your primary server hostname (such as mail.maindomain.com). Multiple domains send outbound email from a shared IP address cleanly when that single reverse hostname resolves back to the connecting IP address and matches your mail server banner.
Is a PTR record the same thing as the "ptr" mechanism inside an SPF record?+
No, in real-world email setups this is a critical distinction: publishing a DNS PTR record on your sending server IP address is mandatory for inbox delivery, whereas using the ptr mechanism inside an SPF record (v=spf1 ptr) is deprecated by RFC 7208 due to severe performance overhead. Production SPF records specify ip4: or a: mechanisms instead.
Last verified: 2026-11-08