What is a DNS PTR record?

What is a DNS PTR record?

A DNS PTR record maps an IP address back to a domain name. It is often called a reverse DNS record because it answers the opposite question to an A record or AAAA record. An A record says "this name uses this IPv4 address"; an AAAA record says the same for IPv6. A PTR record says "this IP address is associated with this name."

PTR records live in special reverse lookup zones. IPv4 reverse records use the in-addr.arpa namespace with the address octets reversed. For example, the PTR lookup for 192.0.2.25 is made against 25.2.0.192.in-addr.arpa. IPv6 reverse records use ip6.arpa, where each hexadecimal nibble is reversed. Users rarely type these names manually, but DNS tools and mail systems use them constantly.

The answer is usually a host name such as mail.example.com. or edge-25.example.net.. A PTR record does not prove that the named domain owns the IP address, and it does not route traffic. It is a directory entry controlled through the reverse DNS authority for the address block.

Who controls reverse DNS?

For normal domain records, the domain owner controls the zone through their DNS provider. PTR records are different because the authority follows IP address allocation. The organization that controls the address space, often an ISP, hosting provider, cloud provider, or regional internet registry delegate, controls the reverse zone or delegates it to the customer.

That distinction matters during migration. Moving a website from one provider to another might be as simple as changing A and AAAA records, but changing PTR records requires access to the provider that owns the destination IP block. For shared hosting, content delivery networks, and managed email platforms, customers may not be able to set arbitrary PTR records. For dedicated mail servers or leased IP space, reverse DNS is usually available through a provider control panel or support request.

PTR records should be planned alongside host naming. A clean pattern such as mail1.example.com or smtp-us-east.example.net is easier to audit than generic names left by the infrastructure provider. However, the name should still be truthful. A reverse name that pretends a server is part of a different brand or network can create trust and incident response problems.

Where PTR records are used

Email is the most visible use case. Many receiving mail systems check whether the sending IP address has a PTR record. Some also check forward-confirmed reverse DNS: the PTR answer points to a host name, and that host name resolves back to the same IP address. This is not the same as SPF, DKIM, or DMARC, but it is a common hygiene signal. A missing, generic, or inconsistent PTR record can increase the chance that outbound mail is throttled, rejected, or treated as suspicious.

Operations teams also use PTR records in logs, dashboards, and investigations. A reverse name can help identify whether an IP belongs to a mail system, crawler, office gateway, cloud instance, or residential network. Large-scale DNS research uses PTR data to categorize address space and infer advertised use, although those inferences must be treated carefully.

PTR records can also appear in access-control decisions, but they should not be used as a strong identity control by themselves. Reverse DNS is useful context, not proof. Names can be stale, broad, misleading, or delegated in ways that do not reflect the actual workload behind an address.

How to check a PTR record

The simplest check is:

dig -x 192.0.2.25

or:

host 192.0.2.25

For an operational review, check more than the existence of an answer. Confirm the PTR name is expected, the forward lookup for that name points back to the address, the TTL is sensible, and the authoritative reverse zone is the one you expect. If the answer changes depending on the resolver used, compare a public recursive resolver, your internal resolver, and a direct query to the authoritative name server.

For email, test the exact public IP that sends mail, not only the domain used in the email address. Many organizations use third-party email platforms, marketing tools, ticketing systems, or regional outbound relays. Each sending IP can have its own reverse DNS story.

Common failure modes

The most common problem is a missing PTR record on a server that sends mail. The server may pass SPF and DKIM but still look poorly managed to receiving systems. Another common issue is mismatch: the PTR points to server.provider.example, while the mail server identifies itself as mail.customer.example, and the forward lookup does not align.

Stale records are also common after infrastructure changes. An IP address may be reassigned while the reverse name still describes the previous service. This can mislead support teams and confuse abuse desks. In cloud environments, recycled addresses can carry generic reverse names unless a dedicated configuration step updates them.

Shared infrastructure introduces a different risk. A single IP address may serve many customer domains. In that case, one PTR name cannot accurately describe every site or application. That is normal for web hosting and CDN traffic, but it is usually undesirable for dedicated outbound email.

Security teams should also be careful with automated trust based on reverse names. An allow rule that trusts any PTR ending in a familiar suffix can be weaker than it looks if the lookup is not forward-confirmed or if the trusted organization delegates reverse zones broadly.

Rollout checks

Before relying on a PTR record, document why it is needed. Common reasons include email deliverability, log readability, and abuse reporting. A hostname alone is too weak for authentication. Confirm the owner of the reverse zone, the process for updates, and the expected time to propagate changes.

For mail systems, align the PTR name, SMTP greeting, forward DNS, SPF, DKIM, and DMARC posture. They do not all have to use the same name, but the configuration should tell a coherent story. For application infrastructure, ensure dashboards keep the raw IP address visible even when reverse names are displayed, because names are advisory and can change.

After the change, query from multiple networks, send test mail to major recipient environments if relevant, and watch logs for rejection reasons or reputation changes. Keep a rollback note that explains which provider controls the reverse zone, because that is the detail most likely to slow down incident response.

Related learning

© PEAKHOUR.IO PTY LTD 2026   ABN 76 619 930 826    All rights reserved.