2.4-01a. DNS in Action. Suppose that the local DNS server caches all information coming in from all root, TLD, and authoritative DNS servers for 20 time units. (Thus, for example, when a root server returns the name and address of a TLD server for .com, the cache remembers that this is the TLD server to use to resolve a .com name). Assume also that the local cache is initially empty, that iterative DNS queries are always used, that DNS requests are just for name-to-IP-address translation, that 1 time unit is needed for each server-to-server or host-to-server (one way) request or response, and that there is only one authoritative name server (each) for any .edu or .com domain.Consider the following DNS requests, made by the local host at the given times:t=0, the local host requests that the name gaia.cs.umass.edu be resolved to an IP address. t=1, the local host requests that the name icann.org be resolved to an IP address. t=5, the local host requests that the name cs.umd.edu be resolved to an IP address. (Hint: be careful!)t=10, the local host again requests that the name gaia.cs.umass.edu be resolved to an IP address. t=12, the local host requests that the name cs.mit.edu be resolved to an IP address. t=30, the local host again requests that the name gaia.cs.umass.edu be resolved to an IP address. (Hint: be careful!)Which of the requests require 8 time units to be resolved?
Question
2.4-01a. DNS in Action. Suppose that the local DNS server caches all information coming in from all root, TLD, and authoritative DNS servers for 20 time units. (Thus, for example, when a root server returns the name and address of a TLD server for .com, the cache remembers that this is the TLD server to use to resolve a .com name). Assume also that the local cache is initially empty, that iterative DNS queries are always used, that DNS requests are just for name-to-IP-address translation, that 1 time unit is needed for each server-to-server or host-to-server (one way) request or response, and that there is only one authoritative name server (each) for any .edu or .com domain.Consider the following DNS requests, made by the local host at the given times:t=0, the local host requests that the name gaia.cs.umass.edu be resolved to an IP address. t=1, the local host requests that the name icann.org be resolved to an IP address. t=5, the local host requests that the name cs.umd.edu be resolved to an IP address. (Hint: be careful!)t=10, the local host again requests that the name gaia.cs.umass.edu be resolved to an IP address. t=12, the local host requests that the name cs.mit.edu be resolved to an IP address. t=30, the local host again requests that the name gaia.cs.umass.edu be resolved to an IP address. (Hint: be careful!)Which of the requests require 8 time units to be resolved?
Solution
The DNS requests that require 8 time units to be resolved are the ones that need to go through the entire DNS lookup process, from the local DNS server to the root, TLD, and authoritative DNS servers. This process includes:
- The local host sends a request to the local DNS server.
- The local DNS server sends a request to the root DNS server.
- The root DNS server responds with the address of the TLD server.
- The local DNS server sends a request to the TLD server.
- The TLD server responds with the address of the authoritative DNS server.
- The local DNS server sends a request to the authoritative DNS server.
- The authoritative DNS server responds with the IP address of the requested domain.
- The local DNS server sends the IP address back to the local host.
Given the caching behavior described in the question, the first request at t=0 for gaia.cs.umass.edu will take 8 time units because the local DNS server's cache is initially empty.
The second request at t=1 for icann.org will also take 8 time units because it's a .org domain, and the local DNS server only has information for the .edu TLD in its cache at this point.
The third request at t=5 for cs.umd.edu will not take 8 time units because the local DNS server has the .edu TLD in its cache from the first request.
The fourth request at t=10 for gaia.cs.umass.edu will not take 8 time units because the local DNS server has the information for this domain in its cache from the first request.
The fifth request at t=12 for cs.mit.edu will not take 8 time units because the local DNS server has the .edu TLD in its cache from the first request.
The sixth request at t=30 for gaia.cs.umass.edu will take 8 time units because the cache for this domain has expired (20 time units after the first request at t=0).
So, the requests at t=0, t=1, and t=30 require 8 time units to be resolved.
Similar Questions
2.4-06. DNS local caches. We saw that a local DNS cache will respond immediately to a client when the local DNS has the name-to-address translation in its local cache. There are millions of such local DNS caches across the Internet. For a given Internet name, will the name-to-address translation pair stored in these local caches always be the same (i.e., are the contents of the local caches synchronized)?Group of answer choicesYes. The caches are always synchronized. When a name-to-address mapping changes in the DNS hierarchy, the DNS hierarchy will push to new mapping to all local caches, and the local caches will not install the new mapping until all local caches commit to doing to sat the same time.No. The caches are not always synchronized. When a name-to-address mapping changes in the DNS hierarchy, the DNS hierarchy will push the new mapping to all local caches. However, it takes different amounts of time for these updates to propagate to all local caches. Thus, all of the local caches are not always perfectly synchronized.No. The caches are not always synchronized. An entry in a local cache will eventually time out, and the local cache will again eventually go to the DNS hierarchy to get the name-to-address translation pair for this name. So if the name-to-address mapping changes in the DNS hierarchy, the new mapping will eventually (but not immediately) make its way into the local cache. Therefore, not all local caches may have the same value for name-to-address translation pair.
Question 2During the name resolution process, which server does a local recursive server contact first? 1 pointCaching name serverTop level domain (TLD) serverRoot name serverAuthoritative name server
A unique, comprehensive, accurate & free Windows (and Linux/Wine) utility to determine the exact performance of local and remote DNS nameservers . . .“You can't optimize it until you can measure it”Now you CAN measure it!
Question #1What is TTL within the context of DNSa time period when DNS query results are cacheda time period for DNS maintenancea time period when DNS is not answering requests
DNS addresses are used to?
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.