Networking · IP Services › DNS
PTR
Cheat sheet · https://pcornel.dk/topic.php?topic=1205
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.
Remember
- 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.
First checks
dig -x <ip>— reverse lookupnslookup <ip>— PTR
Commands
tracerouteshowip domain lookuptraceroute 192.0.2.25 numeric
Verify in this order
IP → reverse zone → PTR → name
Where it usually breaks
local configuration → reachability/transport → request/negotiation → server or policy decision → response/state installation → client-visible result
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=1205