Domain Name System (DNS) manages the names of public websites and internet domains. It controls your domain name’s website and email settings. Whenever a visitor goes to your domain, DNS settings will control which server it will reach out to. It matches the name of the website (its domain) to the address for that same website (IP Address).
How does it work?
DNS is based on the client-server network architecture. Your web browser is like a client (DNS Resolver) and it requests your ISP’s DNS servers when you navigate through the websites.
Whenever a DNS server receives a request, it temporarily behaves as a DNS client. The server passes the request to another DNS server (as a client) and this process continues until the request arrives at a server of matching IP address. Then the response flows back through the chain of DNS servers to the original client, that is, your browser.