01

Why names need translating

Computers on the internet find each other using numeric IP addresses, such as 192.0.2.44 or much longer IPv6 addresses. People prefer names like britannica.com. The domain name system, or DNS, links the two. It was designed in 1983 by Paul Mockapetris to replace a single shared file, called HOSTS.TXT, that listed every computer on the early internet and had to be copied around by hand. That file could not keep up as the network grew. DNS replaced it with a distributed database: no single computer holds every name, but every name can be found by following a chain of authority from the top of the system down.

02

A tree of authority

DNS is organised like an upside-down tree. At the top is the root, shown as an invisible dot at the end of every name. Below it are top-level domains such as .com, .org, .ae and .sa, each run by a registry. Below those are individual domains, managed by their owners or hosting companies, and below those, names such as www or mail. Each level knows only who is responsible for the level beneath it. The root servers do not know where a website is; they know which servers handle .com. Those servers do not know the website's address either; they know which name servers are responsible for that particular domain.

03

The lookup, step by step

When you type a name, your device first checks its own cache. If the answer is not there, it asks a recursive resolver, which does the legwork. The resolver asks a root server, which refers it to the top-level domain servers. They refer it to the domain's authoritative name servers, which finally return the IP address. The resolver passes the answer to your device and the browser connects. If each of those four exchanges took 20 milliseconds, a full lookup would take about 80 milliseconds. Each answer carries a time to live, such as 3,600 seconds, or one hour, during which resolvers can reuse it without asking again.

04

Caching does the heavy lifting

In practice, most lookups never travel the whole chain. Resolvers serving millions of users have the addresses of popular sites and top-level domains already cached, so they can answer in a millisecond or two. Browsers and operating systems keep their own short-term caches as well. The root servers are therefore far less busy than their importance suggests. They are also more numerous than the number 13 implies. Each of the 13 identities is copied to many sites using a technique called anycast, so a query goes to the nearest copy. Hundreds of root server instances run worldwide, including in the Gulf, which improves both speed and resilience.

05

When DNS goes wrong

Because almost every online action starts with a name lookup, DNS failures can look like the whole internet is down even when networks are working. A misconfigured record can make a company's website or email vanish, and an outage at a large DNS provider can affect thousands of sites at once. DNS was also built in a more trusting era, so answers were originally unauthenticated. Attackers can try to poison caches with false addresses that send users to fake sites. Extensions called DNSSEC add digital signatures to records, letting resolvers verify that answers are genuine. Newer options such as DNS over HTTPS encrypt lookups so others on the network cannot easily read them.

06

Common misconceptions

Changing a DNS record is often described as needing up to 48 hours to spread across the internet. Nothing actually spreads; old answers simply remain in caches until their time to live expires, which is why administrators lower it before planned changes. Another myth is that DNS servers store web pages. They store only small records: addresses, mail server names and verification text. Finally, switching to a different public resolver can change speed and privacy, but it does not make browsing anonymous, because the websites you visit still see your connection. Understanding DNS helps explain why a site can load for one person and fail for another at the same moment.

FOLLOW THE EVIDENCE

Sources & further reading

Figures are rounded and widely published; check the linked organisations for the latest editions. These organisations do not endorse this website.