0
21kviews
Explain the need for DNS and describe the protocol functioning.
1 Answer
13
1.1kviews

DNS:

  1. DNS Stands for Domain Name System.

  2. DNS is a hierarchical decentralized naming system for computers, services, or any resource connected to the Internet or a private network.

  3. DNS is an Internet service that translates domain names into IP addresses.

  4. Because domain names are alphabetic, they're easier to remember.

  5. The Internet however, is really based on IP addresses.

  6. Every time you use a domain name, therefore, a DNS service must translate the name into the corresponding IP address.

  7. For example, the domain name www.booksmountain.com might translate to 198.105.232.4.

Need for DNS:

  1. One identifier for a host is its hostname.

  2. Hostnames are mnemonic and are therefore appreciated by humans. such as: a. www.booksmountain.com. b. www.Facebook.com. c. www.Google.co.in. d. surf.eurecom.fr.

  3. Hostnames provide little information about the location within the Internet of the host.

  4. A hostname such as surf.eurecom.fr, which ends with the country code .fr, tells us that the host is in France, but doesn't say much more.

  5. Furthermore, because hostnames can consist of variable-length alpha-numeric characters, they would be difficult to process by routers.

  6. For these reasons, hosts are also identified by so-called IP addresses.

  7. An IP address consists of four bytes and has a rigid hierarchical structure.

  8. An IP address looks like 121.7.106.83, where each period separates one of the bytes expressed in decimal notation from 0 to 127.

  9. An IP address is hierarchical because as we scan the address from left to right, we obtain more and more specific information about where the host is located in the Internet. (Like a postal address)

  10. An IP address is included in the header of each IP datagram.

  11. Internet routers use this IP address to route datagram towards its destination.

DNS Protocol Functioning:

  1. User type a domain name such as ‘www.booksmountain.com’ into the browser (“client”).

  2. The client needs to find the IP address where ‘www. booksmountain.com’ content is located.

  3. Browser will send this query to the operating system of the computer.

  4. Each operating system is configured to query certain DNS servers (Resolving Name Server).

  5. The resolving name server is not aware of the location of ‘Booksmountain.com’, but it does know where the root servers are located.

  6. Next, the resolving name server finds the location of the top-level domain name server (In this case COM severs) and sends a query for ‘Booksmountain.com’.

  7. Each domain on the Internet has an Authoritative name server.

  8. Finally, the authoritative name server will give you the exact IP address of ‘Booksmountain.com’.

  9. This information will come back to the resolving name server, which caches the information and sends backs the information to your browser.

  10. And at the end, you would find yourself on Booksmountain's homepage.

  11. All these complex task take place in seconds.

enter image description here

Please log in to add an answer.