Try
↑ ↓ move↵ openesc close
In this lesson · topic 1 of 7
  1. 1. The address that will not change
  2. 2. The resolution path and the TTL
  3. 3. Fail an endpoint and time the failover
  4. 4. Failover is detection plus the longest cache
  5. 5. Weighted and latency-based answers
  6. 6. Anycast in words
  7. 7. DNS in review

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

A health check removes a dead endpoint from DNS 10 seconds after it fails. The record TTL is 300 seconds. How long can some users keep reaching the dead endpoint?

Your progress is saved in this browser. Sign in to keep it on every device. Privacy · Terms