Skip to content
Related Articles
Get the best out of our app
Open App

Related Articles

GATE | Gate IT 2005 | Question 77

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

Assume that “host1.mydomain.dom” has an IP address of Which of the following options would be most appropriate as a subsequence of steps in performing the reverse lookup of In the following options “NS” is an abbreviation of “nameserver”.
(A) Query a NS for the root domain and then NS for the “dom” domains
(B) Directly query a NS for “dom” and then a NS for “mydomain.dom” domains
(C) Query a NS for and then a NS for domains
(D) Directly query a NS for and then a NS for domains

Answer: (C)

Explanation: Background:

When you type a web address into a web browser like your computer needs to convert that into an IP address so that it can contact that web server & deliver the web page to you.
In a forward DNS lookup client first asks ISP(Internet Service Provider) for the dns of the domain name.ISP maintains a cache for the IP address of the domains whose lookup has been already made.If IP is not found in the cache then the ISP asks the root level dns server,which is a network of hundreds of servers in many countries around the world.Nearest root level DNS for India is in Tokyo.

The root level server then redirects it to another server ,say we are searching for then root level server will redirect isp to org server which will in turn redirect to geeksforgeeks server and from here ISP get the particular IP address which is then sent to the  client. Forward dns lookup-
domain name – IP
Reverse dns lookup-
IP-domain name

special address domain – (this domain basically converts to inverse domain)
IPv6 addresses use the domain.
Now,ISP maintains a list of IP addresses corresponding to domain name and also domain names corresponding to the IP addresses. is the domain name server
For IP address say is say IP address of geeksforgeeks) the corresponding entry will be IN PTR”
which will point back to .This helps in checking the ip address of the sender.
The IP in the entry is in reverse order .


This solution is contributed by Shashank .

Quiz of this Question

My Personal Notes arrow_drop_up
Last Updated : 15 Feb, 2018
Like Article
Save Article
Similar Reads