Signal Review

How the domain name system turns a name into an address, in four questions and a cache

Root, top-level and authoritative servers, the resolver in between, and why the answers are kept

September 20, 2026 4 min read

Typing a name into a browser sets off a chain of lookups that usually ends in milliseconds. The domain name system is a distributed directory with no central copy, run by thousands of operators, and its design of delegation and caching is what has let it grow with the internet since 1983.

The Domain Name System, DNS, is the directory that maps names people can remember, such as a website's, to the numeric addresses that IP packets are routed by.

It was designed by Paul Mockapetris and published in November 1983 as RFC 882 and RFC 883, replacing a single text file, HOSTS.TXT, that every machine on the early network downloaded from one computer at the Stanford Research Institute. The current core specifications are RFC 1034 and RFC 1035, from 1987, extended by many later documents.

A tree, read from the right

A name such as *example.org* is read from right to left. The invisible root sits at the far right; *org* is a top-level domain under it; *example* is a domain under *org*. Each level is a zone administered by someone, and each zone's operator delegates its subdomains to whoever runs them. The root zone is managed by the Internet Corporation for Assigned Names and Numbers through its IANA function; it lists the servers for every top-level domain. ICANN's root zone listed some 1,400 top-level domains in the mid-2020s, including the country codes and the generic names added since 2013.

No server holds the whole directory. Each authoritative server answers only for the zones it has been delegated, and the root servers know only where the top-level servers are. The root itself is served by thirteen named server addresses, A through M, operated by twelve organisations, but each address stands for many physical machines spread across the world by anycast routing; the root operators' own site counts well over a thousand instances.

Who does the work of looking up a name?

The work of following the delegations is done by a recursive resolver, usually run by the user's internet provider, a company such as Google or Cloudflare, or the user's own network. Given a name, it asks a root server, which replies not with the answer but with the addresses of the *org* servers; it asks one of those, which points it to *example.org*'s servers; it asks one of those and gets the address record. Three round trips, four questions counting the client's original one, each answered by a different operator.

Every answer carries a time to live, a number of seconds for which it may be reused, and the resolver caches it. The next request for anything under *org* skips the root; the next request for *example.org* skips everything. Caching is what makes the system fast and what keeps the root servers from being asked billions of questions a day that they have answered before. It is also why a change to a record can take hours to be seen everywhere: the old answer lives on in caches until its time expires.

Signing the answers

The original design had no security: any reply that arrived first was trusted, and an attacker who could guess a query's identifiers could plant a false address in a resolver's cache. DNSSEC, specified in RFC 4033 to 4035 in 2005, adds digital signatures to zone data so that a resolver can verify an answer came from the zone's operator; the root zone has been signed since July 2010. More recent standards, DNS over TLS and DNS over HTTPS, encrypt the conversation between the user and the resolver so that it cannot be read on the way.

Frequently asked questions

What does a DNS resolver do?

A recursive resolver, usually run by an internet provider, a company such as Google or Cloudflare, or the user's own network, follows the delegations: it asks a root server, then the top-level domain's servers, then the domain's authoritative servers, and returns the address record.

Why does a DNS change take hours to be seen everywhere?

Every answer carries a time to live, a number of seconds for which resolvers may reuse it from their caches. Until that time expires, the old answer lives on in caches, so a changed record is seen only gradually.

How many DNS root servers are there?

The root is served by thirteen named server addresses, A through M, operated by twelve organisations. Each address stands for many physical machines spread across the world by anycast routing, and the root operators count well over a thousand instances.

Is DNS secure?

The original design had no security, and a forged reply could be planted in a resolver's cache. DNSSEC, specified in 2005, lets a resolver verify answers through digital signatures, and DNS over TLS and DNS over HTTPS encrypt the conversation between the user and the resolver.