Domain Name System (DNS) — the internet’s address book.

What is DNS and Why It’s Important?
Have you ever wondered how your browser knows where to go when you type something like google.com
? You can thank the Domain Name System (DNS) — the internet’s address book.
🧭 What is DNS?
DNS (Domain Name System) translates human-friendly domain names like example.com
into IP addresses like 93.184.216.34
that computers use to identify each other.
Without DNS, you'd need to memorize numeric IPs for every website. Imagine typing 142.250.190.78
instead of youtube.com
!
Types of DNS Records You Should Know
DNS records are entries in the DNS database. Here are the most common types:
Record | Purpose | Example |
A | Maps domain to IPv4 address | example.com → 93.184.216.34 |
AAAA | Maps domain to IPv6 address | example.com → ::1 |
CNAME | Alias for another domain | blog.example.com → example.com |
MX | Mail server for the domain | Used for sending/receiving email |
TXT | Stores text info (e.g., verification) | v=spf1 include: mail.com |
NS | Delegates domain to name servers | ns1.hosting.com |
DNS Hierarchy Explained: From Root to Authoritative Servers
DNS follows a hierarchical structure, working step-by-step to resolve a domain name:
Root DNS Server (.)
- Knows where the top-level domains (TLDs) like
.com
,.org
,.net
are.
- Knows where the top-level domains (TLDs) like
TLD Server
- Points to name servers for the specific domain (
example.com
).
- Points to name servers for the specific domain (
Authoritative DNS Server
- Holds the actual IP address for
www.example.com
.
- Holds the actual IP address for
🧾 Example Lookup: www.example.com
User types
www.example.com
OS checks local DNS cache
If not found, asks the Recursive Resolver
Resolver asks Root Server
Root points to .com TLD Server
TLD points to Authoritative Server for
example.com
Authoritative Server returns the IP address
Browser loads the website!
Subscribe to my newsletter
Read articles from MOHIT WAGISH directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
