Understanding DNS: How the Internet Finds Websites

🌍 Introduction

Have you ever wondered how typing google.com in your browser magically opens Google’s website?
That’s possible because of the Domain Name System (DNS).

DNS is often called the “phonebook of the internet.”
Just like a phonebook translates a person’s name into their phone number, DNS translates a domain name (like google.com) into an IP address (like 142.250.183.174).

Without DNS, we’d have to remember long strings of numbers for every website. 😵

In this blog, we’ll explore:

  1. What DNS is and why it’s important

  2. The common types of DNS records

  3. The DNS hierarchy (from root servers to authoritative servers)


🔎 What is DNS and Why It’s Important?

  • DNS = Domain Name System

  • It is a global system that helps your computer find the correct server when you type a website name.

Why DNS matters:

  1. Easy to Use → Humans remember names better than numbers.

  2. Scalability → Billions of domains can be managed in a structured way.

  3. Flexibility → You can move a website to a new server without changing its domain name.

👉 Without DNS, the internet would not be user-friendly.


📑 Types of DNS Records You Should Know

DNS records are instructions stored in DNS servers. They tell the internet how to handle a domain.

Common DNS Records:

  • A Record → Maps a domain name to an IPv4 address
    Example: example.com → 93.184.216.34

  • AAAA Record → Maps a domain to an IPv6 address

  • CNAME Record → Alias for another domain
    Example: blog.example.com example.com

  • MX Record → Directs email to the correct mail server

  • TXT Record → Stores text, often for verification (e.g., Google Workspace, SPF, DKIM)

  • NS Record → Defines which name servers are authoritative for the domain

👉 These records are the backbone of how websites, emails, and services work on the internet.


🏗 DNS Hierarchy Explained

DNS is not just one server — it’s a hierarchical system of servers working together.

The DNS Hierarchy (Step by Step):

  1. Root Servers

    • The top of the hierarchy

    • Directs queries to the correct TLD (Top-Level Domain) servers

    • There are only 13 root server clusters worldwide (managed globally)

  2. TLD Servers

    • Handle top-level domains like .com, .org, .in

    • Example: For google.com, the TLD server for .com is responsible

  3. Authoritative Name Servers

    • Store the actual DNS records for the domain

    • Example: Google’s authoritative servers know the real IP address for google.com

Example: Visiting google.com

  1. You type google.com in your browser

  2. Your computer asks the root server → “Where is .com?”

  3. Root server points to .com TLD servers

  4. .com TLD server points to Google’s authoritative server

  5. Google’s server replies with the IP address

  6. Your browser connects to that IP → Google’s website loads ✅


✅ Conclusion

  • DNS is the backbone of the internet, making it human-friendly.

  • DNS Records define how domains work (websites, emails, services).

  • The DNS Hierarchy (Root → TLD → Authoritative) ensures fast and accurate resolution.

So next time you open a website, remember — your computer first asked the internet’s phonebook (DNS) where to find it! 📖🌐


📌 Key Takeaways

  • DNS = Phonebook of the internet

  • Records like A, CNAME, MX, TXT control domains

  • Hierarchy: Root → TLD → Authoritative → IP address

0
Subscribe to my newsletter

Read articles from prashant chouhan directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

prashant chouhan
prashant chouhan