DNS: The Internet's Phone Book

How names become addresses

1

How DNS Resolution Works

Type a domain name and watch the DNS lookup happen step by step. Your query travels through multiple servers before getting an answer.

example.com -> Root Server -> .com TLD -> Authoritative NS -> 93.184.216.34
The lookup cascades from general to specific. Root knows who handles .com. The .com server knows who handles example.com. The authoritative server has the actual IP.
2

DNS Record Types

A DNS zone contains records that map names to values. Different record types serve different purposes. Click each type to see what it does.

3

TTL: How Long to Remember

When a resolver gets an answer, it caches it for the TTL duration. Higher TTL = fewer lookups but slower propagation of changes. Drag the slider to see the trade-off.

3600s (1 hour)
4

DNS in Practice

DNS is one of the most critical pieces of internet infrastructure.

Every Page Load

Before your browser can connect to any website, it must resolve the domain name to an IP. This DNS lookup adds 20-100ms to every first visit.

Email Routing

When you send email to user@gmail.com, your mail server looks up the MX record for gmail.com to find Google's mail servers. Without MX records, email cannot work.

Failover

DNS can point to backup servers. If your primary goes down, update the A record to point to a backup. With low TTL, traffic shifts within minutes.

Fun Fact

The entire DNS system is run by 13 root server clusters (labeled A through M). Each "server" is actually hundreds of machines distributed globally using anycast routing. They handle over 10 billion queries per day and have never all gone down simultaneously.

DNS Expert!

You've learned how domain names translate to IP addresses, how DNS records control where traffic goes, and how caching makes it all fast. Every website visit starts with a DNS lookup.

0
Lookups Made
0
Time Exploring

Names to Numbers

Humans remember names (google.com). Computers need numbers (142.250.80.46). DNS translates between them, like a phone book for the internet.

Record Types

A records point to IPv4 addresses. CNAME records are aliases (www points to the main domain). MX records route email. Each type serves a different purpose.

TTL Controls Caching

Time To Live tells resolvers how long to cache a result. High TTL (86400s) = fewer lookups but slow changes. Low TTL (60s) = fast changes but more lookups.

Resolution Is Hierarchical

Your query goes: browser cache, OS cache, router, ISP resolver, root server, TLD server (.com), authoritative server. Each level narrows the search.

Ready to Create?

Put your new knowledge into practice!

Suggest a Correction