Recursive vs Authoritative DNS
Who walks the tree, who holds the truth
When people say 'DNS server' they could mean one of two very different things. Conflating them is the most common reason DNS debugging goes sideways.
The recursive resolver
A **recursive resolver** answers any question for its clients by doing the legwork: it walks root → TLD → authoritative, caches what it learns, and hands back the result. Your laptop's stub resolver just asks it and trusts the answer. Examples: your ISP's resolver, 1.1.1.1, 8.8.8.8, a corporate resolver, or `systemd-resolved` forwarding upstream.
The authoritative server
An **authoritative server** holds the actual records for a zone (it 'is the source of truth' for, say, `example.com`). It never goes looking elsewhere — it answers from its own zone data, or says 'not here' (NXDOMAIN), or delegates a subzone. Examples: Route 53, Cloud DNS, your own BIND/NSD.
the recursive resolver walks the tree → the authoritative server gives the final answer
Why this matters in an outage
- If `dig @your-resolver name` is wrong but `dig @authoritative name` is right → it's caching/the resolver, not the zone.
- If `dig @authoritative name` is also wrong → the zone data is wrong; fix it at the source.
- If different users see different answers → they're using different recursive resolvers.
That single comparison — resolver answer vs authoritative answer — resolves a huge fraction of real DNS incidents.
Commands to try
$ dig example.comAsk your default recursive resolver; read the ;; SERVER line.
$ dig +trace example.comWatch the recursive walk: root → TLD → authoritative.
$ dig @ns.example-auth.net example.comAsk the authoritative server directly and compare.
Common mistakes
Related quests
Further reading
External, optional depth — opens in a new tab. We summarise concepts in our own words; these go further.
A clean, visual intro to the whole system. Great if any of the above felt fast.
Goes deeper on recursion, iteration, and where caching happens.
The original DNS concepts RFC. Not a starting point, but essential for true depth.