Networking · IP Services › DNS
Recursive lookup
Cheat sheet · https://pcornel.dk/topic.php?topic=1200
Answer
In a recursive lookup the resolver does the work for the client: it queries root, TLD and authoritative servers in turn (or uses its cache) and returns the final answer.
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 <name> +trace— iterative path from rootdig @<resolver> <name>— recursive answer
Commands
dig +trace www.example.comdig @resolverdig @resolver namedig @resolver name +cddig @authoritative name +norecursedig +cd
Verify in this order
client → resolver → root → TLD → authoritative → answer
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=1200