Why the old address lives on after you change the DNS record

TTL, caches, and planning a move you cannot take back instantly

A DNS change is not a switch, it is a countdown. Every resolver keeps the old answer until its time runs out, and some keep it longer.

You change a record to point at the new server, reload the page, and still reach the old one. Nothing is broken. DNS is built from caches, and each one is allowed to remember the answer.

What a TTL is

Every DNS answer carries a time to live, in seconds. A resolver that has the answer may reuse it until the time is up without asking again. That is what keeps the system fast, and it is also why a change spreads gradually instead of at once.

Layers of memory

Your browser, your operating system, your router and your provider's resolver can each hold a copy. Each started its own countdown when it last asked, so they expire at different moments. Two people on the same network can see different answers for a while.

Failures are cached too

A name that did not exist can be remembered as missing. If a record is created after someone looked it up too early, they may keep getting "not found" until that negative answer expires.

How to plan a move

1. Lower the TTL well before the change, at least as long as the old TTL, so the caches are already used to short lives. 2. Make the change. 3. Keep the old server answering until the old TTL has passed and traffic has drained. 4. Raise the TTL again once things are stable.

Some resolvers ignore low values, so the old address may still see occasional traffic. Treat the old server as a fallback for a while, not as something to switch off on the same afternoon.

Lessons

  • A DNS change is a countdown, not a switch.
  • Lower the TTL ahead of time, not at the moment of the change.
  • Keep the old target alive until traffic has drained.
  • Check what a specific resolver returns before concluding the change failed.
  • Tagged: dns, networking, operations

    Area: Systems and Networking

    Related notes

    עברית