Network Design and Operations

Which statement correctly describes how recursive and non-recursive (iterative) queries are used in DNS name resolution?

  1. AA host (stub resolver) sends a recursive query to a full-service resolver asking for the final answer, and the full-service resolver sends non-recursive queries to the root servers and authoritative DNS servers, following the referrals to the next server to ask
  2. BA host itself repeats non-recursive queries in turn to a root server, a TLD server and the authoritative DNS server to get the answer
  3. CRoot servers accept recursive queries and, on behalf of the host, query down to the authoritative DNS server and return the final answer
Show answer and explanation

Answer: A. A host (stub resolver) sends a recursive query to a full-service resolver asking for the final answer, and the full-service resolver sends non-recursive queries to the root servers and authoritative DNS servers, following the referrals to the next server to ask

A recursive query is a request to "return the final answer," and a host normally sends this kind of query to a full-service resolver (caching DNS server) run by its ISP or organization. If the answer is not in its cache, the full-service resolver sends non-recursive queries to a root server, a TLD server and the domain's authoritative DNS server. A server that receives such a query returns the answer if it knows it, and otherwise returns a referral (such as NS records) saying "ask this server next." Root and TLD servers do not accept recursive queries, for reasons of load and security.

  • A. Correct. Queries between the host and the resolver are recursive, and those between the resolver and each server are non-recursive.
  • B. Walking down the hierarchy is the full-service resolver's job. A host's stub resolver normally sends just one query to the resolver.
  • C. Root servers do not accept recursive queries; they only refer the resolver to TLD servers.
Practice this topic Back to topic

Related calculators

Books on Network Design and Operations Ad

As an Amazon Associate I earn from qualifying purchases.

More Network Design and Operations questions

  1. For a web server move, the IP address in the A record for www.example.com will be changed. The record's TTL is currently 86400 seconds, and to keep the time the old address is used after the change to about 5 minutes at most, the TTL will be lowered to 300 seconds beforehand. Resolvers cache records exactly for their TTL. Which is the correct deadline for lowering the TTL?
  2. A router that performs NAPT (outside address 198.51.100.7) is configured with port forwarding, a static setting that translates only the destination: "forward traffic arriving at outside TCP port 8080 to port 80 on the inside web server 192.168.1.20." When host 203.0.113.9 on the internet connects from source port 51000 to port 8080 on 198.51.100.7, which is the destination and source of the packets the web server receives?
  3. An ACL that checks incoming packets from the top is applied to a router interface. Rule 1 is "permit traffic to TCP port 443 on 10.0.0.10," rule 2 is "deny all traffic from source 192.168.1.0/24," and rule 3 is "permit traffic from source 192.168.0.0/16 to TCP port 80"; there are no other rules. Of the four packets (i) "from 192.168.1.5 to TCP port 443 on 10.0.0.10," (ii) "from 192.168.1.5 to TCP port 80 on 10.0.0.20," (iii) "from 192.168.2.5 to TCP port 80 on 10.0.0.20" and (iv) "from 192.168.2.5 to TCP port 22 on 10.0.0.20," which choice lists all the packets that are let through?
  4. In IPv6, which range holds link-local addresses, which are used only within the same link and are always configured automatically on every interface that uses IPv6?
  5. In IPv6 SLAAC (stateless address autoconfiguration), how does a host create a global unicast address?

Comparisons in this topic