Skip to main content
InterviewHubPRO
Section Overview
Q38

Question 38 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

76%
Networking & Protocols (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

DNS Resolution Deep Dive: Recursive resolver, Root, TLD, and Authoritative nameservers.

senior LevelSecurity & AuthGraphQL

In Simple Words: What happens when you type google.com in a browser:

  1. Local Caches: Checks browser cache, OS cache (/etc/hosts), and router cache.
  2. Recursive Resolver (e.g. 1.1.1.1 / 8.8.8.8): Acts on behalf of the client:
    • Queries Root Nameserver (.) -> Returns IPs of .com TLD nameservers.
    • Queries TLD Nameserver (.com) -> Returns Authoritative Nameservers for google.com (e.g. ns1.google.com).
    • Queries Authoritative Nameserver -> Returns final IPv4/IPv6 address (A / AAAA record).
  3. Resolver caches the record based on TTL (Time to Live) and returns IP to browser.