Every time you type a URL, your computer has no idea where it is.
It only speaks in IP addresses — numbers like 104.21.44.1.
DNS is the system that bridges that gap.
The phone book analogy
Think of DNS like a phone book. You look up “siegb.dev” and it hands you back an IP address. The difference is this phone book is distributed across thousands of servers worldwide.
How a lookup actually works
- You type
siegb.devinto your browser - Your computer asks its local resolver (usually your ISP or router): “what’s the IP for this?”
- The resolver asks a root nameserver: “who handles
.devdomains?” - Then asks the
.devnameserver: “who handlessiegb.dev?” - Finally asks Cloudflare’s nameserver (since that’s where we host): “what’s the IP?”
- The answer comes back and your browser connects
The whole thing takes milliseconds. Results are cached so repeat visits skip most steps.