Networking & Protocols (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
How does DNS (Domain Name System) resolution work step-by-step?
junior LevelCode Examplenetworking-protocolsBasic
In Simple Words:
Translates human-readable domain names (example.com) to IP addresses:
- Browser checks local cache -> OS cache -> Router cache.
- If miss, queries the Recursive Resolver (ISP or
8.8.8.8). - Recursive resolver queries the Root Nameserver (
.). Root returns the TLD server for.com. - Resolver queries the TLD Nameserver (
.com). TLD returns the Authoritative Nameserver forexample.com. - Resolver queries the Authoritative Nameserver (
example.com), which returns the A record (93.184.216.34). - Resolver caches response and returns IP to browser!
text
DNS Resolution Flow:
[Browser] ──► [Recursive Resolver]
│
├─► 1. Query [Root Server (. )]
├─► 2. Query [TLD Server (.com)]
└─► 3. Query [Authoritative Server (example.com)] ──► IP: 93.184.216.34