DNS, the Internet's Phonebook
You type example.com and press Enter. But the last topic showed that computers don't find each other by name — they find each other by number, the IP address. So something has to step in between the name you typed and the number the network needs, and do it before the page can even begin to load.
That something is DNS — the Domain Name System — the service that turns the names you type into the numeric addresses computers use. It runs silently before almost everything you do online, and most people never know it's there until the moment it stops working.
What does DNS actually do?
DNS does one thing: it looks up the numeric address for a name. You give it example.com; it gives you back the IP address of the computer that serves that site — a number like 93.184.x.x. That single lookup is the whole job.
It's worth being precise about what DNS does not do, because the name "Domain Name System" makes it sound bigger than it is. DNS never sends you the web page, the images, or any of the site's content. It answers exactly one question — "what is the address for this name?" — and then your computer takes that address and goes to fetch the page on its own.
The phonebook idea
Think of an old phone directory. You know a person's name but not their number, so you look the name up and the book gives you the number to dial. DNS is that directory for the internet: you know the name, DNS gives you the address, and then your computer "dials" it by connecting.
The analogy holds in one more useful way and then breaks in a telling one. Like a phonebook, DNS only ever hands you a number to reach someone — it is not the person, just the listing. But unlike a single printed book, there is no one giant DNS directory sitting in one place.
Instead, DNS is distributed — spread across a huge number of cooperating computers around the world, each responsible for part of the directory. No single machine holds every name. When your computer asks for an address, the question may pass through several of these servers until it reaches the one that knows the answer for that particular name.
The lookup, step by step
Here is the sequence, in order. Your computer has a name and needs an address. It sends that name to DNS and asks for the matching IP address. DNS finds it and sends the number back. Only now, holding the address, does your computer open a connection to that machine and ask it for the actual page.
All of this usually finishes in a fraction of a second, before you notice any delay. And because the same names come up again and again, your computer keeps recent answers nearby for a while — a saved copy it can reuse — so it doesn't have to ask DNS from scratch every single time you visit a site you were just on.
Why DNS can be slow or fail
Because the DNS lookup happens before anything else, it sits on the critical path: if it's slow, the whole page feels slow, even when the website itself is fast. And if DNS can't find the address at all, your browser shows an error and the site simply won't load — not because the site is down, but because your computer never learned where to go.
This is why engineers have a running joke: "it's always DNS." When something on the internet breaks for no obvious reason, the cause turns out, with surprising regularity, to be a DNS problem — a wrong or missing entry in that distributed directory. It's a joke precisely because it's so often true.
- "DNS stores the website itself." It stores only the address. DNS hands you a number; your computer then fetches the actual page from the machine at that number.
- "There's one central DNS computer somewhere." DNS is distributed across many cooperating servers worldwide, each holding part of the directory. No single machine knows every name.
- "DNS and the website run on the same server." They're usually separate. One set of servers answers the name lookup; a different machine serves the page once you have its address.
- "If a site won't load, the site must be down." Often it's DNS — your computer never got the address. The site can be perfectly healthy while the lookup is what failed.
- DNS is a whole topic in the Networking course and in every cloud platform — this is where the idea first lands.
- A large share of real internet outages trace back to DNS, so recognizing it is a genuine troubleshooting skill, not trivia.
- It completes the "opening a website" story: name typed → DNS lookup → address → connect, the bridge between the last topic and the next.
- When you run your own site later, in the cloud, setting up its DNS entry is one of the first real steps — and one of the easiest to get wrong.
Knowledge Check
DNS turns one thing into another. Which pair is correct?
- A name like example.com into the numeric IP address behind it
- An IP address into a friendly name for you to read in the bar
- A username into the password needed to sign in to a website
- A web page into the files and images your browser shows on screen
After DNS answers your computer's question, what does it hand back?
- Just the address, and your computer fetches the page on its own
- The whole web page itself, already built and ready for the browser to display
- The site's text and images, but not the parts written in code
- A saved copy of the file as it sits on the website's hard drive
A site won't load, but DNS can't find its address. What's actually happening?
- Your computer never got the address, so it has nowhere to connect
- The website is definitely switched off and no longer exists anywhere
- DNS deleted the page, so there is nothing left for the browser to show
- Your internet is simply too slow to download such a large web page
You got correct