Use it when logs, SSH or mail checks need the name for an IP address and reverse lookup fails.
PTR
A PTR record maps an IP address back to a name (reverse DNS) in in-addr.arpa for IPv4 or ip6.arpa for IPv6; it is used by logging, mail servers and troubleshooting tools.
1. PTR records map addresses to names (in-addr.arpa / ip6.arpa).
2. Used by logs, mail checks and troubleshooting.
3. Zone owned by the address holder.
4. Keep forward and reverse consistent.
5. Missing PTR slows some services.
IP → reverse zone → PTR → name
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification & troubleshooting Narrow the fault
1. Record queried name/type and resolver.
2. Test reachability and UDP/TCP 53.
3. Query the recursive resolver.
4. Trace delegation/authority when needed.
Step 2 Common PTR problems Narrow the fault
- No PTR for mail servers → mail rejected.
- PTR not matching the forward A record.
- Reverse zone delegated to the ISP; changes must be requested there.
- Missing reverse zones internally, causing slow logins or tools that wait for reverse lookups (SSH
UseDNS).
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- A/AAAA map names to IPv4/IPv6; CNAME aliases one name; PTR is reverse lookup
- Recursive and authoritative roles answer different questions
- UDP 53 is common, while TCP 53 is required for some large replies and zone operations
- NXDOMAIN, NODATA, SERVFAIL and timeout indicate different boundaries; TTL controls cache lifetime.
dig -x <ip>— reverse lookupnslookup <ip>— PTR
ReferenceWhat it is1 section · depth on demand
Reverse zones
For 192.0.2.10 the PTR name is 10.2.0.192.in-addr.arpa. Reverse zones are delegated by whoever owns the address block (ISP or RIR for public space).
dig -x 192.0.2.10 +short
nslookup 192.0.2.10
Mail servers often reject senders without matching forward and reverse DNS (FCrDNS).
ReferenceWhy it matters1 section · depth on demand
How it works
A PTR record maps an address back to a name in the reverse zone (in-addr.arpa for IPv4, ip6.arpa for IPv6). The reverse zone is delegated by whoever owns the address block, usually the ISP or RIR, so you may need to ask the provider to set PTRs for public addresses.
ReferenceImportant terms & boundaries1 section · depth on demand
In depth
How the reverse name is built
| Address | PTR owner name |
|---|---|
| 192.0.2.25 | 25.2.0.192.in-addr.arpa. |
| 2001:db8::25 | 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. |
IPv4 octets are reversed under in-addr.arpa (RFC 1035); IPv6 is written as 32 reversed hexadecimal nibbles under ip6.arpa.
$ dig -x 192.0.2.25 +short
web01.example.net.
$ dig 25.2.0.192.in-addr.arpa PTR # the same query written out
Who controls the PTR
The reverse zone belongs to whoever holds the address block — usually the ISP or RIR delegation, not the owner of the forward domain. For blocks smaller than /24, the ISP can delegate individual names with CNAMEs into a customer zone (classless delegation, RFC 2317).
Forward-confirmed reverse DNS
Mail servers and some logging systems check that the PTR name resolves back to the same address:
192.0.2.25 → PTR web01.example.net → A 192.0.2.25 ✓ consistent
A missing or mismatched PTR does not break routing, but it can get outbound mail rejected and makes logs harder to read.
Cisco IOS side effects
tracerouteandshowcommands try a reverse lookup for every hop whenip domain lookupis enabled and a name server is configured; unreachable DNS makes them slow. Usetraceroute 192.0.2.25 numericor configure reachable resolvers.- Without a name server, a mistyped command in EXEC mode is treated as a host name and IOS tries to resolve it;
no ip domain lookupavoids the delay on lab devices.
Keep PTR records for infrastructure addresses (loopbacks, interfaces) so traceroute output shows meaningful device names.
Documented example, not captured output.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in IP Services → DNS → PTR. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc1034.html · confidence 94%