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?
- A. 18
- B. 10
- C. 12
- 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
- Dijkstra's algorithm runs from A on the undirected graph with link costs A-E 9, A-G 6, B-C 3, B-F 5, B-G 7, C-E 8, C-F 9, C-G 5, D-E 5…
- Switches B1..B5 (bridge ID = number) are connected by point-to-point links: B1-B2 (cost 38), B1-B3 (cost 38), B1-B4 (cost 38), B1-B5 (cost…
- Switches B1..B5 (bridge ID = number) are connected by point-to-point links: B1-B2 (cost 38), B1-B3 (cost 38), B1-B4 (cost 38), B1-B5 (cost…
- An (11,7) Hamming code uses even parity with check bits at positions 1, 2, 4 and 8 (positions numbered 1 to 11 from the left). The…
- An (11,7) Hamming code uses even parity with check bits at positions 1, 2, 4 and 8. The received word (positions 1 to 11) is 10001100111…
- Which of these CRC generator polynomials, given as bit strings (leftmost bit is the highest power), is guaranteed to detect EVERY error…