What happens step-by-step during a DNS Lookup when typing a URL into the browser?
Quick Revision Summary
DNS lookup traverses browser cache → OS cache → Recursive resolver → Root server → TLD server → Authoritative server, translating domain names to IP addresses over UDP port 53.
Interactive Practice Mode
Formulate your thoughts or take notes before revealing the model solution.
Saved automatically
Model Answer & Deep-Dive Explanation
When a user requests https://freshershome.com, the DNS resolution follows this hierarchical sequence:
- Browser DNS Cache: Checks local browser cache for a recent TTL record.
- OS Resolver & Hosts File: Checks operating system DNS cache and
/etc/hostsfile. - Recursive DNS Server (ISP / Cloudflare 1.1.1.1 / Google 8.8.8.8): If cache misses, the OS queries the recursive resolver.
- Root Name Server (
.): The recursive resolver contacts one of 13 global root clusters to locate the Top-Level Domain server for.com. - TLD Name Server (
.com): Points the resolver to the authoritative nameservers forfreshershome.com. - Authoritative Name Server: Holds the official zone file and retu s the A (IPv4) or AAAA (IPv6) record.
- Caching & Connection: The resolver caches the IP with its TTL, retu s it to the OS and browser, which then initiates the TCP 3-way handshake and TLS negotiation.
Interviewer Evaluation Points & Scoring Rubric
- 1 1. Details all stages of DNS hierarchy. 2. Distinguishes recursive resolver from authoritative server. 3. Mentions caching, TTL, and UDP port 53.
Related Questions in Computer Networks & OS
Why can adding more threads make a CPU-bound service slower?
Medium level • 5 views
What is a Process vs a Thread, and what are the causes and conditions of a Deadlock?
Intermediate level • 4 views
What is the architectural difference between Docker Containers and Virtual Machines (VMs)?
Beginner level • 4 views
How does a TCP connection differ from an application-level session?
Medium level • 4 views
What happens under the hood during the TCP 3-Way Handshake and 4-Way Termination?
Intermediate level • 3 views