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
What is the architectural difference between Docker Containers and Virtual Machines (VMs)?
Beginner level • 1 views
What is the difference between 'git merge' and 'git rebase', and when should each be used in a team workflow?
Beginner level • 1 views
What is the difference between Docker Containerization and Kubernetes Container Orchestration?
Intermediate level • 1 views
Explain Linux File Permissions, Inodes, and the difference between Hard Links and Symbolic Links.
Intermediate level • 1 views
How does a process differ from a thread?
Easy level • 1 views