Adding details to Dns lookup section #2477
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enhancements Made:
Detailed Browser Cache Check:
Added information on how the browser first checks its DNS cache before proceeding with further resolution steps. Instructions for viewing the DNS cache in Chrome (chrome://net-internals/#dns) were included.
Clarification on Lookup Function:
Explained the role of the gethostbyname library function in performing the DNS lookup when the domain is not found in the cache.
Local Hosts File Resolution:
Included details about the browser checking the local hosts file for hostname resolution before querying the DNS server.
DNS Server Request Process:
Described the process of making a request to the configured DNS server when the hostname is not found in the cache or hosts file.
Address Resolution Protocol (ARP) Explanation:
Provided a detailed explanation of how ARP is used to resolve the IP address of the DNS server when it is located on the same subnet. This includes the process of sending ARP requests and receiving MAC addresses.
Cross-Subnet DNS Resolution:
Explained how ARP is utilized for the default gateway when the DNS server is on a different subnet, ensuring clarity on how network communication is established.
In-Depth DNS Query Process:
Enhanced the description of the DNS query process, detailing how the DNS server checks its cache, performs recursive queries, and communicates with root and authoritative DNS servers to resolve the domain name.
Final Steps Summary:
Summarized the final steps that occur after the IP address is obtained, leading to the initiation of a TCP connection for further communication.