Pcornel
Networking · Network & Protocols › DNS Protocol Reference

DNS Recursive Resolution Journey

Cheat sheet · https://pcornel.dk/topic.php?topic=303

Back to the Topic

Answer

A device asks one recursive resolver and waits. The resolver does the work: it asks a root server, then the top-level domain's servers, then the domain's own servers, following a referral at each step, and caches what it learns.

Remember

Each party has its own cache. Compare three answers: what the client gets, what its resolver says, and what the domain's own server says. dig +trace walks the path from the root and shows where a delegation breaks.

First checks

  • dig <name> — through the system's resolver; the last line names the server that answered.
  • dig <name> @<resolver> — a specific resolver.
  • dig <name> +trace — each referral from the root down.
  • dig <name> @<authoritative server> +norecurse — the zone itself.
  • ipconfig /all / resolvectl status — the client's resolver.

Commands

dig +trace
dig
resolvectl status
resolvectl flush-caches

Verify in this order

client asks its resolver → cache hit, or: root refers to the top-level domain → that refers to the domain's servers → authoritative answer → cached → returned to the client

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=303

Confirmation

Confirm action

Continue?