DNS is a name resolution protocol that is used to resolve domain names to IP addresses. The internet is nothing more than a collection of network domains connected together with unique IP addresses as the identifier. It is not practically possible to remember each domain or the device based on an IP address. Instead, it is lot easier to remember the domains using names, and use some dynamic way of converting the names to an IP address.
DNS is a distributed client/server-based communication model. DNS is an application layer protocol where the client will send a DNS query carrying the domain name to the server, which in turn will respond with a DNS response for the respective IP address associated with the domain name. DNS runs on UDP port number 53. The server will maintain a database with a unique domain name and the associated IP addresses. The database can maintain...