DNS! Not just a domain name.


What is DNS?
DNS stands for Domain Name System. Think of it as the internet's phonebook. It translates human-friendly domain names (like www.google.com
) into IP addresses (like 142.250.190.78
) that computers use to communicate with each other.
Without DNS, you would need to remember long strings of numbers to visit your favorite websites!
Why is DNS Important?
Scalable: It organizes the vast number of websites on the internet in a structured way.
Fast & Efficient: DNS makes browsing seamless by quickly finding the right server for your request.
Reliability: It ensures websites are accessible even if their IP address changes.
How DNS Works (Simplified Example)
You type
www.example.com
in your browser.Your computer asks the Recursive Resolver for the IP address.
The resolver:
Checks its cache.
If not found, asks the Root Server.
The Root Server points it to the TLD Server for
.com
.The TLD Server directs it to the Authoritative Server for
example.com
.The Authoritative Server provides the IP address.
Your browser connects to the website using the IP address.
Types of DNS You Should Know
Recursive DNS Resolver
The first stop when you type a domain name.
Acts like a detective: it searches through multiple sources to find the IP address for the domain.
Root DNS Server
The starting point of the DNS hierarchy.
Directs your query to the right Top-Level Domain (TLD) server.
TLD DNS Server
Handles specific domain extensions like
.com
,.org
,.net
.Points your query to the right Authoritative Name Server.
Authoritative DNS Server
The final destination for your query.
It holds the actual record for the domain and provides the correct IP address.
DNS Hierarchy
DNS has a structured hierarchy, like a tree with multiple layers:
Root Level
Represented by a single dot (
.
), though it's invisible in URLs.Root servers manage TLDs like
.com
,.org
,.net
.
TLD (Top-Level Domain)
These are domain extensions, e.g.,
.com
,.edu
,.uk
.Managed by specific TLD servers.
Second-Level Domain
- The name you recognize, like
google
ingoogle.com
.
- The name you recognize, like
Subdomains
- Optional parts before the main domain, like
mail
inmail.google.com
.
- Optional parts before the main domain, like
Fun Fact:
DNS caching happens at multiple levels (your browser, computer, and even your ISP), making it faster to revisit websites.
Thank You for visiting.
Subscribe to my newsletter
Read articles from Ram Bhardwaj directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by

Ram Bhardwaj
Ram Bhardwaj
Sharing what I learn everyday