How DNS works, from resolver to authoritative answer

A plain-language path through DNS: stub resolver, recursive cache, authority, TTL and why a one-second TTL still depends on the resolver.

Every page view starts with a lookup. The browser asks a recursive resolver; that resolver asks (or remembers) your authority. The TTL on the last answer decides how long the world will keep using it.

Four actors, one question

The stub resolver lives on the device. The recursive resolver caches and walks the tree. The parent (TLD or registrar) holds NS delegation. The authority — Cloud DNS if you host the zone there — returns the record.

GeoDNS and health checks run at the authority. They cannot rewrite an answer already sitting in a recursive cache.

TTL is a contract with strangers

You publish a TTL. Many resolvers honour it. Some clamp it. Designing as if every resolver will forget in one second is how people get surprised.

Still use a low TTL on records you might move. Health-aware answers help even when a cache is sticky: you are less likely to keep publishing a dead target.

What the authority can still decide

On Cloud DNS the answer can depend on location, ASN, subnet, weight and current health. Resolvers receive different records without the application seeing the lookup.

That is why DNS load balancing is coarse. One recursive resolver represents many users. Use it to pick a region or a canary pool, not to fair-share every TCP connection.

Where CDN fits on this path

DNS returns an address or hostname. The CDN is what that name delivers. Flattening the apex to Cloud CDN is a DNS record strategy sitting in front of a delivery strategy.

If lookups fail, the CDN never gets the request. Protect both.

Frequently Asked Questions

Their resolver still holds the previous answer. Lower TTLs ahead of change, and expect a tail of clamped caches.

No. Anycast is how authority is reached. Records and policies still decide the answer.

Query the Cloud DNS nameservers directly for the zone before you delegate, and confirm records match what you intend.

Run this on Cloud DNS.

Get started with our Management Console in less than 2 minutes, or connect with an expert to supercharge your business today.