Lion Cipher Lab

Plan a DNS cutover from TTLs and negative caching

Why it matters

Moving a service — a new load balancer, a new data centre, an emergency failover after an incident — very often comes down to changing a DNS record. How long users keep going to the old address after the change is set by caching rules, not by when you click save. RFC 1035 gives every record a TTL, the number of seconds a resolver may keep a cached copy. RFC 2308 adds negative caching: if a resolver asked for a name that did not exist yet, it may cache that 'does not exist' answer for a time set by the zone's SOA record. Teams get cutovers wrong in predictable ways. They change a record with a…

What you'll learn

Steps in this lab

  1. TTLs decide how long the old answer lives
  2. The current zone
  3. Write the planner
  4. Run it: one day, five minutes, or three hours of NXDOMAIN
  5. Plan the change, and allow for clients that do not follow TTLs

Open the full interactive lab →