The GATE Grind

GATE 2022 CS – Question 35

Computer Networks · Application Layer: DNS and HTTP · 1 mark · Numerical answer

Consider the resolution of the domain name www.gate.org.in by a DNS resolver. Assume that no resource records are cached anywhere across the DNS servers and that iterative query mechanism is used in the resolution. The number of DNS query-response pairs involved in completely resolving the domain name is _____________.

Practise this question in The GATE Grind →

Show answer and explanation

Correct answer: 4

Explanation

Resolving `www.gate.org.in` iteratively with empty caches, the resolver asks each server in turn and each one answers with the next server to ask (a referral):

1. Query the **root** server: it returns the server for `.in`.
2. Query the **`.in` (TLD)** server: it returns the server for `org.in`.
3. Query the **`org.in`** server: it returns the server for `gate.org.in`.
4. Query the **authoritative `gate.org.in`** server: it returns the IP address.

That is **4** query-response pairs.

More Application Layer: DNS and HTTP questions

All Application Layer: DNS and HTTP questions →