Computer Networking Basics

A full-service resolver (caching DNS server) with an empty cache looks up the IP address of www.example.com. In what order does it query servers?

  1. ARoot server → .com DNS server → authoritative DNS server for example.com
  2. BAuthoritative DNS server for example.com → .com DNS server → root server
  3. C.com DNS server → root server → web server for www.example.com
Show answer and explanation

Answer: A. Root server → .com DNS server → authoritative DNS server for example.com

A device asks a resolver run by its ISP or organization, and the resolver walks the domain name hierarchy from the top on the device's behalf. It first asks a root server, which refers it to the server managing .com (a TLD server); that server refers it to the authoritative DNS server for example.com, which finally returns the address of www.example.com. The answer is cached for the validity period attached to the record (its TTL, separate from the TTL in the IP header), so later queries are answered immediately. That is why, after a DNS setting changes, the old address may still be used until cached answers expire.

  • A. Correct. It walks down the hierarchy, being told whom to ask next at each step.
  • B. The hierarchy is walked from the top (the root); at first the resolver does not know which server is authoritative.
  • C. It starts from the root, and a web server is never asked for names.
Practice this topic Back to topic

Related calculators

Books on Computer Networking Basics Ad

As an Amazon Associate I earn from qualifying purchases.

More Computer Networking Basics questions

  1. When a device obtains an IP address with DHCP, what is the correct order of messages?
  2. Which of the following does HTTPS (HTTP protected by TLS) protect?
  3. In TLS, why can a browser conclude that the server it connects to is not an impostor?
  4. Roughly how long does it take to send a 100 MB file over a 100 Mbps link? Ignore overhead such as headers and latency, and take 1 MB = 10^6 bytes.
  5. On 1 Gbps Ethernet, TCP data is sent continuously with IP packets filling the 1500-byte MTU. Taking the IPv4 header as 20 bytes, the TCP header as 20 bytes, the Ethernet header and FCS together as 18 bytes, and the preamble and inter-frame gap together as 20 bytes, which is closest to the upper limit on application-data throughput?