What's happening?
- The browser and operating system check their caches first; a cached answer costs nothing.
- Otherwise a resolver asks the root, then the .org servers, then the domain's own nameserver — or answers from its cache if someone asked recently.
- Every answer carries a TTL saying how long it may be cached; until it expires, changes to the record are not seen.
Complexity
- Time
- 0 queries from cache · up to 4 network queries when nothing is cached
- Space
- Cached answers on every layer, for their TTL
Where you'll meet it
Pointing a domain at a new server, setting up email (MX), using a CDN (CNAME), and every "it works for me but not for them" after a DNS change.
Common mistake
Changing a record and expecting everyone to see it at once. Old answers stay cached until their TTL runs out — lower the TTL before a planned move.
FAQ
What is a TTL?
Time to live: how many seconds an answer may be cached. 3,600 means caches can reuse it for an hour.
What is the difference between A and CNAME?
An A record gives an IP address; a CNAME says "this name is an alias of that name — look that one up instead".
What is an MX record?
It names the server that receives email for the domain, with a priority. Email follows MX, not the website's A record.