Learn DNS · Level 1: What DNS is · lesson 2 of 34 · 2 min
What happens when you type a web address
Direct answer: Your device asks a resolver, the resolver asks the root, then .com, then your domain's nameservers, and caches the answer.
The picture: Picture asking for directions in a city you don't know. You ask a local (your resolver). They don't know either, so they ask the tourist office, then the street's own guide, then tell you the way.
Step by step
- You type
yourbusiness.com. - Your device asks its resolver (usually your internet provider, or a service like 1.1.1.1).
- If the resolver doesn't know, it asks a root server: "who handles .com?"
- It asks the .com servers: "who handles yourbusiness.com?" They name your nameservers.
- It asks your nameservers, which give the real answer.
- The resolver remembers the answer for a while (the TTL) and gives it to your device.
All of this usually takes less than a tenth of a second.
Why it matters
If any step is wrong, for example your nameservers don't answer, the site and email vanish even though the server is fine.
Back to the picture: The local is your resolver, the tourist office is the root and the .com servers, the street guide is your DNS host. Next time, the local remembers the answer for a while.