CS FundamentalsVery hardGATE CS (PYQ pattern)

A resolver starts with an empty cache and resolves iteratively, caching every referral and answer. It handles, in order, www.example.com, then mail.example.com, then www.other.com (all three names exist, and example.com and other.com have different authoritative servers). Counting only queries and replies between the resolver and the root, TLD and authoritative servers, how many DNS messages are exchanged?

  1. A. 18
  2. B. 10
  3. C. 12
  4. D. 14

Correct answer: C. 12

www.example.com: root, .com TLD and example.com server each get a query and send a reply: 6. mail.example.com: the example.com server is cached, so 2. www.other.com: the .com TLD referral is cached, so TLD and other.com server: 4. Total 12; without caching it would be 18.

More Computer Networks questions

Exams that ask this topic