In this lesson · topic 1 of 7
Topic 1
The address that will not change
3 min read
A name is a pointer
Users type a name. The network needs an address. The Domain Name System, DNS, turns one into the other. A service with two endpoints can answer with either, and when one dies it can answer with the other.
That sounds like instant failover. It is not, because nobody asks the name server each time. Answers are cached on the way, and a cached answer keeps pointing at the dead endpoint until it expires.
What the lab shows
In the lab, endpoint A fails at second 100. A health check notices after 10 secondsmeasured and changes the record to point at B. Even so, users who got the old answer keep failing. With a record TTL of 300 seconds and every resolver obeying it, requests failed for 248 secondsmeasured, which is nearly the whole outage. 36.0 percentmeasured of all requests in the run failed.
The record was right after 10 seconds. The caches were wrong for much longer. This lesson is about that gap, and about what you can do with DNS besides failover.
Predict first