Learn DNS · Level 1: What DNS is · lesson 6 of 34 · 2 min
TTL and caching: why changes take time
Direct answer: Every answer carries a TTL, the number of seconds it may be remembered. Changes show once the old copies expire.
The picture: Think of a phone number written on a sticky note. TTL is how long people are allowed to trust the note before they ring directory enquiries again.
If your record has a TTL of 3600, resolvers may keep the old answer for up to an hour after you change it.
Plan changes
- A day before, lower the TTL to 300.
- Make the change: most people see it within 5 minutes.
- Raise the TTL again.
Nameserver changes are slower, because the .com servers' own TTL is often one to two days.
Back to the picture: Change a record and people still holding the old sticky note will use the old number until their note runs out. Lower the TTL the day before a move.