INHow the Internet Works · Lesson 3 of 7
DNS — The Internet's Phone Book
Computers route by number; humans remember names. DNS translates example.com into 93.184.216.34 — a distributed database queried billions of times per second, and the first step of every page load.
The TTL (time-to-live) on each record says how long caches may keep it. Long TTLs (hours) mean fast lookups but slow changes; that's why DNS changes 'propagate' gradually — caches worldwide expire on their own schedules. Ops teams drop TTL to 60 seconds before a migration, move, then raise it again.
✦ Tip
DNS is also a load balancer and a failover switch: return different IPs per query (round-robin), or per requester location (CDNs steering you to a nearby server). When a site is 'down for some people but not others', stale or split DNS is suspect number one. The dev-facing rule: it's always DNS.
DNS is also a load balancer and a failover switch: return different IPs per query (round-robin), or per requester location (CDNs steering you to a nearby server). When a site is 'down for some people but not others', stale or split DNS is suspect number one. The dev-facing rule: it's always DNS.