Diagramium
📇 Narrated diagram

How DNS finds a website

The internet's phone book, walked end to end: your own caches, the resolver that does the legwork, the root and dot com servers, and the countdown that decides how long the world remembers an answer.

15 steps3 min readNarrated with a studio voice
How DNS finds a websitecheck firstcache missforwardedalready known?start at the topanycastreferralreferralreadsthe recordanswer returnsstoredand heresigned zoneprivate pathencrypted lookupnumeric addressA desktop or laptop client💻Your laptopA database hostBrowser and system cachesRoutes traffic between networks📡Home routerA physical or virtual server host🖥️Recursive resolverA database hostResolver cacheA physical or virtual server host🖥️Root name serverA cloud provider or external networkOne address, many machinesA physical or virtual server host🖥️Name server for dot comA physical or virtual server host🖥️The domain's own name serverA database hostThe zone fileA database hostAddress record and its TTLNetwork-attached storage💾Cached on the way backFilters traffic at a network boundary🧱DNSSEC signature checkA secure tunnel endpoint🔒Encrypted DNSThe public internet / WAN🌐Your browser connects at last
How DNS finds a website — the complete diagram. Press Present to watch it build itself.
Step 1 of 15

Your laptop

Every website has a name you can remember and a number the network actually uses. Nothing on the internet routes by name, so before anything else your device has to turn one into the other.

Step 2 of 15

Browser and system caches

The first stop is memory. Your browser keeps a small table of recent answers and the operating system keeps another beneath it. A name you looked up a minute ago never leaves your laptop at all.

Step 3 of 15

Home router

If nothing local matches, the question goes to the router in your hallway, which usually forwards it straight to your internet provider's resolver. Plenty of people override that setting and point at a public resolver instead.

Step 4 of 15

Recursive resolver

The recursive resolver does the real legwork. Your laptop asks one simple question and waits, while the resolver may make three or four separate journeys across the internet to find the answer, all in a few dozen milliseconds.

Step 5 of 15

Resolver cache

First it checks its own cache, and this is where the whole system wins. A resolver serving a million people already knows every popular name, so the great majority of lookups never travel any further than this machine.

Step 6 of 15

Root name server

For a genuinely unknown name it starts at the top. There are only thirteen root server addresses in the entire world, and every resolver has them written in from birth, because you have to begin somewhere you already trust.

Step 7 of 15

One address, many machines

Thirteen addresses, but well over a thousand physical machines behind them. A routing trick called anycast lets many servers share one address, so your question lands at whichever copy is nearest, often in your own city.

Step 8 of 15

Name server for dot com

The root does not know your website and never will. It answers with a referral: go and talk to the servers that handle dot com. That one sentence is essentially all a root server ever says.

Step 9 of 15

The domain's own name server

The dot com servers refer you onward again, this time to the name servers the domain owner chose. Those machines are the only ones on Earth that hold the truth about that particular domain.

Step 10 of 15

The zone file

Their zone file is the master list: the web address, the mail servers, the verification records. Change a single line here and you have changed where the entire world sends traffic for that name.

Step 11 of 15

Address record and its TTL

Back comes the record you wanted, with a countdown attached called the time to live. Five minutes means fast changes but heavier traffic. Twenty four hours means a calm network but a slow, painful migration.

Step 12 of 15

Cached on the way back

On the way home, every layer keeps a copy until that countdown expires. It is why a brand new domain can work for your friend and not yet for you, and why engineers lower the countdown days before moving a site.

Step 13 of 15

DNSSEC signature check

There is a signed version of all this, the domain name system security extensions. Each answer carries a cryptographic signature chained upward to the root, so a resolver can prove nobody swapped the address while it was travelling back.

Step 14 of 15

Encrypted DNS

An ordinary lookup travels as plain readable text, handing whoever runs the network a tidy list of every site you visit. An encrypted lookup wraps the question in the same protection a website uses, hiding even the question from the cafe wifi.

Step 15 of 15

Your browser connects at last

Only now, with a number in hand, does your browser open the connection you actually asked for. The entire search usually finishes in under a tenth of a second, and you never had the faintest idea it happened.

Watch it explain itself

Every step above is narrated aloud. Play it, or open it in the editor and make it yours — no account needed.