alex / what-happens-when

An attempt to answer the age old interview question "What happens when you type google.com into your browser and press enter?"
40.22k stars 5.55k forks source link

DNS Resolution #2447

Open patrickodeh1 opened 4 months ago

patrickodeh1 commented 4 months ago

This pull request adds a brief section on DNS resolution to the "what-happens-when" repository. The new content provides an in-depth explanation of how the domain name system translates human-readable domain names into IP addresses, covering key concepts such as:

Recursive vs. Iterative Queries: Explanation of how DNS queries are processed, with a distinction between recursive queries initiated by the client's DNS resolver and iterative queries performed by DNS servers.

Caching Mechanisms: Details on how DNS responses are cached at multiple levels (browser, operating system, ISP) to improve lookup efficiency and reduce latency for repeated requests.

DNS Hierarchy: Overview of the DNS hierarchy, including root servers, top-level domain (TLD) servers, and authoritative servers, illustrating the path a DNS query takes to resolve a domain name.