Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

PTR

Direct answer

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.

When to use this

Use it when logs, SSH or mail checks need the name for an IP address and reverse lookup fails.

First 30 seconds

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.

Operational verification

IP → reverse zone → PTR → name

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS / IOS XE
Scope / prerequisiteUse it when logs, SSH or mail checks need the name for an IP address and reverse lookup fails.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

2 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • 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.
Key checks
  • dig -x <ip> — reverse lookup
  • nslookup <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

AddressPTR owner name
192.0.2.2525.2.0.192.in-addr.arpa.
2001:db8::255.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

  • traceroute and show commands try a reverse lookup for every hop when ip domain lookup is enabled and a name server is configured; unreachable DNS makes them slow. Use traceroute 192.0.2.25 numeric or 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 lookup avoids 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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 1034

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%
Confirmation

Confirm action

Continue?