🧠 DNS Explained

ANGADSINGH OBBIANGADSINGH OBBI
4 min read

What is DNS?

Ever wondered what magical force lets you type google.com and instantly bring up the world’s most powerful search engine? No, it’s not unicorns or fairy dust. It’s something called DNS, the Domain Name System, aka the internet’s very own phonebook (but cooler, and it doesn’t sit forgotten in a drawer).

Let’s take a wild but fun ride through DNS-town using the funky little chart above. Buckle up. 🚀


🌳 Meet the DNS Family Tree

Imagine DNS as a giant family tree, but instead of grandparents and cousins, you’ve got dots, domains, and some bossy servers.

🌟 1. The Almighty Root Node (.)

At the very tippy top, we’ve got the Root Node. It's represented by a single dot (.) basically the internet’s mysterious godparent that no one talks about, but everyone listens to.

It doesn’t do much itself, but delegates like a pro.


🔝 2. Top-Level Domains (TLDs)

Right under the Root Node are the TLDs — you know them as those sassy endings like:

  • .com (because you mean business),

  • .org (for the good guys),

  • .net (the classic nerd),

  • .io (for start-ups that drink too much coffee ☕).

Each of these is like a big city in the DNS universe.


🏠 3. Second-Level Domains (SLDs)

These are the names you actually care about — like the house you live in:

They sit right under their TLD parents. Think of them as domain teens trying to stand out in their dot-parent's shadow.


🧸 4. Subdomains (The Baby Domains)

Ah, subdomains — the babies of the bunch. They live inside the second-level domains and usually handle special tasks:

The chart makes it clear — these are "Sub-domains of Parent", AKA: kids still living at home.


🔍 So, How Does DNS Actually Work?

Let’s say you wanna visit cloud.google.com because you're feeling all techy.

Here’s what happens, simplified with mild exaggeration:

  1. You type the URL like a boss.

  2. Your computer goes, “Huh, what’s that? I’ll ask someone.”

  3. It asks the DNS resolver, who asks the root, who sends it to .com, who sends it to Google’s servers.

  4. Google’s server says, “Ah yes, cloud.google.com lives at this IP address.”

  5. Boom 💥 — your browser says thank you and takes you to the site.

This all happens faster than you can say, “Why is my Wi-Fi slow?”


📄 Meet the DNS Record Squad

DNS Records are like sticky notes telling the internet where to go and what to do.

🧍 A Record (Address)

Sends a domain to an IPv4 address.

“Hey, example.com lives at 93.184.216.34. Don’t forget it!”

🧍‍♂️ AAAA Record

Same as A record, but for IPv6 — the cool, futuristic address.

🪞 CNAME (Nickname)

It says, “Don’t call me blog.example.com, call me www.example.com. We’re the same!”

📮 MX (Mailman Express)

The MX record directs emails to a specific mail server responsible for receiving emails on behalf of the domain. It also includes a priority value to determine which mail server should be used first.

“Mail for example.com? Drop it off at mail.example.com, please.”

📃 TXT (Chatterbox)

The TXT Record allows the domain admin to enter any text into DNS record. This is commonly used for things like SPF records, which helps prevent email spoofing.

🎛️ NS (Name Server)

Points to the server in charge of all DNS decisions for that domain.

🔁 PTR (Backwards Record)

Takes an IP and tells you the name behind it. Think of it as caller ID for servers.


🧠 Final Thoughts

DNS is like the internet’s backstage crew — it doesn’t get applause, but without it, the whole show falls apart. It keeps things organized, points you to the right website, and handles all the complicated stuff while you sip coffee and scroll memes.

Next time you visit facebook.com, give a little nod to DNS. It's working hard — silently, loyally, and without asking for a raise.

10
Subscribe to my newsletter

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

Written by

ANGADSINGH OBBI
ANGADSINGH OBBI