How does your browser find a website from just its name?
Computers find each other by numbers. Before DNS arrived in 1983, one text file, updated by phone call, was how the internet's ancestor knew who was who.
▶ Start the storyYour browser asks a global directory called the Domain Name System, DNS. Computers find each other by numerical IP addresses, but people prefer names, so DNS translates human-friendly host names into addresses. It is often called the phone book of the internet, with one important difference: it is not a single book.
It started as one. At the Stanford Research Institute, a text file called HOSTS.TXT mapped host names to the numerical addresses of the computers on the ARPANET. Addresses were assigned manually: to add a machine, you telephoned the Network Information Center, run by Elizabeth Feinler, during business hours. Feinler also suggested domains, such as edu for computers at educational institutions. But by the early 1980s a single, centralized table had become slow and unwieldy. In 1983 Paul Mockapetris created the Domain Name System instead, a design meant to avoid one large central database.
In DNS, no one knows everything and everyone knows who to ask next. Your device usually passes the question to a DNS server run by your internet provider, whose resolver reads the name from right to left. It asks a root server about the last part, such as com, and gets pointed to the servers responsible for that domain, and then to ever more specific servers, until one of them gives the actual answer. Because that information rarely changes within hours, intermediate servers and your own browser cache the answers, so a repeated question can be answered from a cache instead of climbing the chain again.
Step 1: You type a name
The resolver reads it right to left
Step 2: Root server
Points to the servers of the top-level domain
Step 3: More specific servers
Each one points further down
Step 4: The answer
An IP address comes back
Step 5: Cached
Kept until its time to live runs out
Quiz me
0/3
Recap
Nobody knows everything in DNS; each server knows who to ask next, and answers are cached for a time to live.
💡 A trick to remember it · Ask the root, follow the pointers, cache the answer, and wait out the time to live.
Surprising fact · There are 13 root server addresses but 1954 root server instances, thanks to anycast.
Connects to
- 🚚 How can a video reach millions of people at once without the internet buckling?
- 🧭 How did one maintenance command take Facebook off the internet for hours?
- 🕸️ Is the web the same thing as the internet?
- 🗃️ Why does a processor keep a tiny memory right next to itself?
- 📦 How does the internet deliver your data without ever giving you a line of your own?
- 💬 What was the first message ever sent over the internet's ancestor?
Sources (2)
No source, no claim. Every fact in this lesson (17 claims) cites at least one of these.