How does DNS turn a website name into an address?
Computers find each other by number (an IP address), not by name. Your device must first look up example.com’s number.
Overview
Short answer
Your device asks a resolver, which asks root, .com and the domain’s own servers for the IP address, then caches the answer.
Every device on the internet is reached by a number, its IP address. People remember names. The Domain Name System (DNS) is the internet's phone book that turns one into the other, billions of times a day, usually before you notice anything has happened.
Play with the figure, then press Next (or the → key) to go step by step.
Asking a resolver
When you type a web address, your device first checks its own cache. If the answer isn't there, it asks a recursive resolver: usually one run by your internet provider, handed out by your home router, or a public one such as 1.1.1.1 or 8.8.8.8. The resolver does the legwork.
Caching makes it fast
Every answer has a time to live (TTL), from seconds to days. Your browser, your operating system and the resolver all keep answers until the TTL runs out, so popular names are almost always answered in a millisecond or two. A full lookup from scratch might take 50–150 ms.
More than websites
DNS also tells email where to go (MX records), proves who owns a domain (TXT records) and lets one name point to many servers around the world. Plain DNS is not encrypted, so newer DNS over HTTPS (DoH) wraps queries in the same encryption that protects web pages.
Common myths
- "Changing DNS makes my internet faster." It can speed up lookups slightly, but not your download speed.
- "There are only 13 root servers." There are 13 root names, but over 1,500 copies run around the world.
- "Incognito mode hides DNS lookups." It doesn't; your resolver still sees which names you look up.
Questions people ask
What does “DNS server not responding” mean?
Your device can’t reach its resolver. Restarting the router usually fixes it; otherwise try a public resolver such as 1.1.1.1 or 8.8.8.8 in your network settings.
Why do new websites or DNS changes take time to work everywhere?
Resolvers keep old answers until their TTL expires. This is often called “propagation”, and can take from minutes to a couple of days.
What is DNS over HTTPS?
It encrypts DNS queries so others on the network can’t see or change them. Most browsers and phones support it.
How do I flush my DNS cache?
On Windows run “ipconfig /flushdns”; on a Mac run “sudo dscacheutil -flushcache”. Restarting the browser clears its own cache.
Who controls DNS?
ICANN coordinates the root and top-level domains; registries run each TLD such as .com; and each domain owner controls their own records.
Test yourself
Pick an answer for each question. Every answer comes with an explanation.
0/4 answered01What does DNS turn a name into?
02What does a root server answer?
03What does TTL control?
04Why are most lookups so quick?
Sources & more
Sources
- Domain Name System (Wikipedia)(opens in a new tab)
- What is DNS? (Cloudflare)(opens in a new tab)
- Root name server (Wikipedia)(opens in a new tab)
- DNS over HTTPS (Wikipedia)(opens in a new tab)
Last updated 2026-11-27
Keep exploring
- Internet & WirelessExplore it
How does Bluetooth work?
- Internet & WirelessExplore it
How does WiFi work?
- Internet & WirelessExplore it
How does a QR code work?
- Internet & WirelessExplore it
How does GPS work?
- Internet & WirelessExplore it
How do mobile networks (4G and 5G) work?
- Internet & WirelessExplore it
How do fibre-optic cables work?