Try
↑ ↓ move↵ openesc close

Interview prep / DNS and traffic steering

Junior · DNS and traffic steering · System design interview question

What happens when a client looks up a name?

Sketch your own answer first, then compare it with the one below.

A strong answer

The program asks the operating system, which passes the question to a recursive resolver. If the resolver has a fresh cached answer, it replies. If not, it asks a root server which servers handle the top-level domain, asks those which servers handle the zone, and asks the zone's authoritative server for the record. It caches the reply and returns it.

Caching at the resolver and at the operating system means most lookups never reach the authoritative server. Each record carries a time to live that limits how long a cache may reuse it.

Sources

Learn it by running it

The dns and traffic steering lesson explains the mechanism behind this question, and its lab lets you change the parameters and watch the effect.

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