PTR record at a glance

FieldValue
Type code12
Defined inRFC 1035 (IPv4); RFC 3596 (IPv6)
Owner nameThe address reversed under in-addr.arpa or ip6.arpa
ValueOne hostname, such as mail.example.com.
Controlled byWhoever holds the IP block: your ISP, cloud or hosting provider

Here is how a PTR record looks in a zone file:

25.2.0.192.in-addr.arpa.  3600  IN  PTR  mail.example.com.
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.  3600  IN  PTR  mail.example.com.

The first record is the reverse name for 192.0.2.25: the four octets in reverse order. The second is for 2001:db8::25, written as 32 hex digits, one per label, reversed.

Who controls reverse DNS

Reverse zones follow address allocation, not domain ownership. The regional internet registry delegates a block's reverse zone to the organization that holds it, usually an ISP or cloud provider, and that organization decides what PTR records exist. So you cannot add a PTR record in the DNS zone for example.com. Instead, set it in your cloud console (most offer a "reverse DNS" field per address) or ask your ISP. How IP addresses are allocated explains the chain.

Forward-confirmed reverse DNS

Anyone who controls an address can make its PTR say anything, so receivers check both directions: the PTR of the address names a host, and that host's A or AAAA record leads back to the same address. This is forward-confirmed reverse DNS (FCrDNS). Large mailbox providers expect it from sending servers, and a missing or generic PTR (such as host-192-0-2-25.isp.example) is a common reason for mail being rejected or sent to spam.

For web servers PTR matters little. For anything that sends mail directly, set it to the name the server uses in its SMTP greeting. Reverse DNS and PTR records goes into more depth.

How to look up a PTR record

Every tool below has a shortcut that builds the reverse name for you. The examples use documentation addresses; replace them with the address you want to check.

dig (macOS, Linux, WSL)

CommandWhat it does
dig -x 192.0.2.25Reverse lookup for an IPv4 address, full answer
dig +short -x 2001:db8::25Reverse lookup for an IPv6 address, name only
dig 25.2.0.192.in-addr.arpa PTRThe same query with the reverse name written out
dig +short mail.example.com AThe forward half of an FCrDNS check

nslookup (Windows, macOS, Linux)

CommandWhat it does
nslookup 192.0.2.25Reverse lookup: nslookup switches to PTR when given an address
nslookup -type=PTR 25.2.0.192.in-addr.arpaThe same query with the reverse name written out
nslookup 2001:db8::25 1.1.1.1IPv6 reverse lookup, asked of Cloudflare

PowerShell (Windows)

CommandWhat it does
Resolve-DnsName 192.0.2.25Reverse lookup: Resolve-DnsName queries PTR when given an address
Resolve-DnsName -Name 192.0.2.25 -Type PTRThe same, with the type spelled out
(Resolve-DnsName 192.0.2.25).NameHostJust the hostname
Resolve-DnsName (Resolve-DnsName 192.0.2.25).NameHost -Type AThe forward half of an FCrDNS check

Common mistakes

  • Trying to add PTR in your own domain’s zone. It has no effect; set reverse DNS where the IP address is managed.
  • A PTR whose name has no matching A or AAAA. FCrDNS fails, and mail receivers treat the server as suspicious.
  • Several PTR records for one address. Allowed, but many tools only read the first. Use one.
  • Forgetting IPv6. A mail server that sends over IPv6 needs an ip6.arpa PTR too.

PTR records in Domain Visualizer

Domain Visualizer does not list PTR records as nodes, because they belong to the address owner. Click any A or AAAA record instead: the IP details in the panel include the address’s reverse DNS name.

FAQ

Why does my IP address show my provider’s name in reverse DNS?

The provider holds the reverse zone and sets a default PTR. Change it in your cloud console or ask your ISP to set it to your hostname.

Does reverse DNS affect my website?

Rarely. Browsers do not check PTR records. Reverse DNS matters mostly for mail servers, logs, and some security tools that label traffic by name.

Can one address have a PTR for each domain I host on it?

Technically yes, but receivers usually look at one name. Pick the name the server uses in its SMTP greeting and give it a matching A record.

Sources and further reading