Networking

DNS

How DNS turns a name like example.com into an IP address, from the recursive resolver through root, TLD and name servers, and how caching and TTL speed it up.

  • 3 min read
  • 3 questions
  • +25 XP
Transcript

DNS, explained by cats. Kitty wants to visit tuna .com. She types it in her browser, but the internet doesn't understand names. It only speaks in numbers, IP addresses. So Kitty contacts a DNS server. It's the internet's phone book.

Kitty says, hey DNS, what's the address for tuna .com? DNS server checks its records. Tuna .com maps to this IP address. Now Kitty's browser knows where to go. It connects straight to that server. And boom, tuna delivered. If DNS doesn't know, it asks other DNS cats.

One by one until someone knows the answer. To speed things up, DNS caches results. So next time Kitty visits, no need to ask again. That's DNS, domain name system. It turns names into numbers, so Kitty can find her tuna faster.