Skip to Content

A stick figure smiling

Here's a preview from my zine, How DNS Works! If you want to see more comics like this, sign up for my saturday comics newsletter or browse more comics!

Image of a comic. To read the full HTML alt text, click "read the transcript".

browse more comics! get the zine!
read the transcript!

You might have heard that DNS updates need time to “propagate”.

What’s actually happening is that there are old cached records which need to expire.

DNS records are cached in many places

  • browser caches
  • DNS resolver caches
  • operating system caches, represented by a box with a smiley face: my DNS records are cached on billions of devices!

let’s see what happens when you update an IP A▾
300 [changed to] 60 [changed to]

beware: even if you change the TTL to 60s, you still have to wait 300 seconds for the old record to expire

30 seconds later…

(you go to in your browser)

Illustration of a resolver, represented by a box with a smiley face holding a magnifying glass, and a browser, represented by the Firefox logo of a fox wrapped around a globe

browser: hey what’s the IP for
resolver, thinking: let’s check my cache for… found it!!
resolver: it’s!

400 seconds later…

(you refresh the page again)
browser: hey what’s the IP for
resolver, thinking: The TTL (300s) is up, better ask for a new IP…
resolver: it’s!

12 hours later…

(you check’s logs to make sure all the traffic has moved over)

Illustration of a stick figure with curly hair looking confused, and a rogue DNS resolver, which looks like the other resolvers except that it is wearing a burglar mask.

person: that’s weird, the old server is still getting a few requests…
rogue DNS resolver: I don’t care about your TTL! I just cache everything for 24 hours!

the culprit: a rogue DNS resolver

Saturday Morning Comics!

Want another comic like this in your email every Saturday? Sign up here!

I'll send you one of my favourite comics from my archives every Saturday.
© Julia Evans 2024 | All rights reserved (see the FAQ for notes about licensing)