Skip to main content

GATE CSE 2022Computer Networks › Application Layer & Network ProtocolsVerified

GATE CSE 2022 PYQ: Consider the resolution of the domain name www.gate.org.in \textsf{www.gate.org.in} www.gate.org.in by a DNS…

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

    Answer

    4

    Approach

    Count the number of DNS hierarchy levels that the resolver must contact when no records are cached and iterative resolution is used. For the name www.gate.org.in, the zones involved are root, .in, .org.in, and gate.org.in (authoritative), giving four query-response pairs.

    There are four DNS levels to traverse: root, .in, .org.in, and the authoritative server for gate.org.in. Therefore, completely resolving the name without caching requires 4 DNS query-response pairs. If the name had been www.gate.in, the count would have been 3, but .org.in adds one extra level.

    Reviewed by GateIQ Editorial Team: IIT & IISc Alumni.