What is DNS?
Domain Name Server (DNS), in a non-professional language and we can call it as Internet’s phone book. All the public IP addresses and their hostnames are stored in the DNS and later it translates into a corresponding IP address.
For a human being, it is easy to remember and recognize the domain name, however, the computer is a machine that does not understand the human language and they only understand the language of IP addresses for data transfer.
There is a “Central Registry” where all the domain names are stored and it gets updated on a periodic basis. All the internet service providers and different host companies usually interact with this central registry to get the updated DNS details.
For Example: When you type a website https://askany.online, then your internet service provider looks for the DNS associated with this domain name and translates this website command into a machine language – IP address – 220.127.116.11 (note that, this is imaginary IP address and not the actual IP for the given website) so that you will get redirected to the appropriate destination.
This is shortly explained in the below diagram:-