Complete Guide about DNS Resolution- from basics

π€ How Does the Internet Understand Website Names?
When you type a website like:
www.google.com
your browser shows the website in seconds.
But computers do not understand names like google.com.
So the big question is:
How does the browser convert a name into something the computer understands?
This process is called DNS Resolution.
π What is DNS and Why Name Resolution Exists?
π What is DNS?
DNS stands for Domain Name System
DNS is the phonebook of the internet.
π± Real-Life Example (Very Simple)
In your mobile phone:
You save a contact as βMomβ
But the phone actually dials a number
Same idea on the internet:
| Human-friendly | Computer-friendly |
| google.com | 142.250.190.14 |
π Name Resolution means:
Converting a website name into an IP address
Without DNS:
- We would have to remember numbers for every website π΅
β Why Name Resolution Is Needed
Computers talk using IP addresses, not names.
So DNS exists to:
Make the internet easy for humans
Convert names β IP addresses
Help browsers find the correct server
π Name resolution is the heart of DNS.
π§ High-Level DNS Resolution Flow

Simple Flow:
You type a website name
Browser asks DNS
DNS returns an IP address
Browser connects to the server
Website loads π
πͺ DNS Resolution Step by Step (Very Simple)
Letβs understand this using an example:
Example:
www.example.com
π’ Step 1: Browser Cache Check
First, your browser checks:
βHave I visited this website before?β
If yes β IP is already saved β website opens fast
If no β move to next step
π’ Step 2: OS Cache Check
Your computer (Operating System) also keeps DNS records.
If found β done
If not β ask outside
π’ Step 3: Ask Recursive DNS Resolver
Your internet provider (ISP) has a DNS resolver.
This resolver does the hard work for you.
π’ Step 4: Ask Root DNS Server

Root server replies:
βI donβt know the IP, but I know who manages
.comβ
π’ Step 5: Ask TLD Server (.com)
TLD server replies:
βI donβt know the IP, but this server manages
example.comβ
π’ Step 6: Ask Authoritative DNS Server
This server knows the final answer.
It replies:
example.com β 93.184.216.34
π’ Step 7: Website Loads
IP address is sent back to browser
Browser connects to server
Website appears π
π§ Simple DNS Resolution Summary


Browser β DNS Resolver β Root β TLD β Authoritative β IP β Website
All this happens in milliseconds β‘
π οΈ What is the dig Command?
π What does dig mean?
dig = Domain Information Groper
It is a command-line tool used to:
Ask DNS questions
See DNS resolution details
Debug DNS issues
β Why Do We Use dig?
dig helps developers:
Check if DNS is working correctly
See which IP a domain resolves to
Understand how DNS resolution happens
π It is mainly used for learning, testing, and debugging.
π§ͺ Simple dig Example
Command:
dig google.com
What it does:
Asks DNS: βWhat is the IP of google.com?β
Shows DNS response in detail
π§Ύ Important Parts of dig Output (Beginner Level)
You donβt need to understand everything.
Just focus on:
ANSWER SECTION β This shows the IP address
Query time β How fast DNS responded
Thatβs enough for beginners π
π¦ When Should You Use dig?
Use dig when:
Website is not opening
DNS changes are not working
You want to learn DNS resolution
You want to check A, MX, TXT records
π§ Final Thoughts (Beginner Friendly)
If DNS resolution feels confusing right now β thatβs okay.
Remember:
DNS converts names β IP addresses
DNS resolution is just asking the right servers
digis a tool to see DNS answers
Once you practice a little, DNS will feel logical and simple π