Skip to main content
InterviewHubPRO
Section Overview
Q6

Question 6 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

12%
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:

  1. Browser checks local cache -> OS cache -> Router cache.
  2. If miss, queries the Recursive Resolver (ISP or 8.8.8.8).
  3. Recursive resolver queries the Root Nameserver (.). Root returns the TLD server for .com.
  4. Resolver queries the TLD Nameserver (.com). TLD returns the Authoritative Nameserver for example.com.
  5. Resolver queries the Authoritative Nameserver (example.com), which returns the A record (93.184.216.34).
  6. 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