What is DNS? How Domain Name System Works (With Diagram & Examples)
Whenever we open a website like www.google.com or www.youtube.com, we never think about what happens in the background. We simply type the website name and press Enter, and within seconds the website opens.
But computers and servers do not understand website names. They only understand numbers, known as IP addresses.
This is where DNS (Domain Name System) plays a very important role. DNS acts like the phonebook of the Internet, converting human-readable domain names into machine-readable IP addresses.
In this blog, we will learn:
- What is DNS
- Why DNS is needed
- How DNS works step by step
- DNS working diagram
- Real-life examples of DNS
- Advantages of DNS
🌟What is DNS (Domain Name System)?
DNS (Domain Name System) is a system that translates domain names (like www.google.com) into IP addresses (like 142.250.190.14) so that computers can locate and communicate with each other on the internet.
Simple Definition:
DNS is a naming system that converts website names into IP addresses.
Technical Definition:
DNS is a hierarchical and distributed naming system used to resolve domain names into IP addresses on the internet.
👉🏻Why DNS is Needed?
Without DNS, users would have to remember IP addresses instead of easy website names.
Example:
- Website Name: www.facebook.com ✅ Easy to remember
- IP Address: 157.240.229.35 ❌ Hard to remember
DNS makes the internet user-friendly, fast, and efficient.
⚙️How Domain Name System (DNS) Works?
DNS works in a step-by-step process whenever you type a website URL in your browser.
Let’s understand it clearly.
✍️Step-by-Step Working of DNS
✅Step 1: User Enters a Website Name
You type:
in your web browser.
✅Step 2: Browser Checks DNS Cache
First, the browser checks its local DNS cache to see if it already knows the IP address of that website.
- If found → Website opens quickly
- If not found → Request goes to DNS server
✅Step 3: Request Goes to Recursive DNS Resolver
The request is sent to a Recursive DNS Resolver (usually provided by your ISP like Jio, Airtel, etc.).
✅Step 4: Root DNS Server
The resolver asks the Root DNS Server:
“Where can I find information about .com domains?”
Root server replies with the address of the TLD server.
✅Step 5: TLD (Top-Level Domain) Server
The TLD server (.com, .org, .in, etc.) tells where the Authoritative DNS Server is located.
✅Step 6: Authoritative DNS Server
The Authoritative DNS Server contains the actual IP address of the website.
It responds with:
IP Address: 93.184.216.34
✅Step 7: Website Loads
The browser uses this IP address to connect to the web server, and the website is displayed on your screen.
🪄DNS Working Diagram
![]() |
| Figure: DNS Working Diagram – How Domain Name System converts a domain name into an IP address |
✅Explanation:
👉🏻Real-Life Example of DNS
- Domain Name: www.google.com
- DNS converts it to:
- IP Address: 142.250.190.14
- Domain Name: www.youtube.com
- Converted into an IP address by DNS
- Website opens without you knowing the IP
✅Types of DNS Servers
1. Recursive DNS Resolver
- Receives DNS queries from users
- Finds the correct IP address
2. Root DNS Server
- Top level of DNS hierarchy
- Directs queries to TLD servers
3. TLD DNS Server
- Handles domain extensions like .com, .org, .in
4. Authoritative DNS Server
- Stores actual IP addresses
- Gives final answer
✅Advantages of DNS
- Easy to use and remember
- Faster website loading (due to caching)
- Scalable system
- Reliable and distributed
- Reduces human errors

Comments
Post a Comment