Multiple authoritative servers
A resolver measures reachability and response behaviour. It can favour a healthy, low-latency server and move away from failures.
Resolution
The client asks recursively; the resolver usually works iteratively. Cache state determines whether the result needs one local lookup or several network round trips.
Cold-cache walkthrough
www.example.com AThe RD flag normally requests recursion: return the final result, not a referral.
With QNAME minimisation it asks only what it needs to learn about com, rather than disclosing the complete name immediately.
com name servers.The response contains an NS RRset and usually glue addresses in the Additional section.
com server about example.com.The TLD server returns the delegation for the child zone.
The server returns the A RRset, perhaps alongside a DNSSEC signature.
Subsequent clients may be answered directly until the TTL expires.
Caching
Each RRset has a time to live. A cache counts that value down from the moment it stores the data. Changing a record at the authoritative source does not invalidate copies already cached elsewhere.
Before a planned change, operators often lower the old record’s TTL and wait at least the previous TTL before changing the data. Raising the TTL again can follow after the change has stabilised.
Faster changeover, more query traffic and greater dependence on authority availability.
Lower load and better resilience to brief outages, but slower recovery from incorrect data.
Some resolvers can temporarily answer with expired data when authority is unreachable, trading freshness for continuity.
Negative caching
Resolvers cache authenticated or authoritative evidence that a name or RRset does not exist. This avoids repeatedly asking the same failing question and protects authoritative infrastructure from needless load.
For classic NXDOMAIN and NODATA answers, the negative cache lifetime is derived from the zone’s SOA data. Newer guidance also calls for caching other resolution failures rather than retrying aggressively.
NXDOMAIN says the name does not exist. NODATA is a successful response saying the name exists but has no RRset of the requested type.
Selection and resilience
A resolver measures reachability and response behaviour. It can favour a healthy, low-latency server and move away from failures.
A forwarding resolver may compare answers, latency or validation state depending on implementation. Divergent answers can indicate split DNS, stale caches or an attack.
A fast answer that fails validation is not better than a slower secure answer. Correctness outranks latency.
Practical tracing
dig +trace www.example.com Adig @192.0.2.53 www.example.com Adig example.com NS +norecursedig www.example.com A +dnssec