DNS stands for domain name system. In the recent post, we have discussed what a domain name is. A domain name is a name by which a website is identified. The Internet is based on IP addresses. You can access a website directly with a domain name because DNS translates the domain name into IP address. If there was no DNS you will be asked to type the IP address of the website which you wish to visit. DNS works by associating a unique IP address with each domain name.
When a domain name is registered, it is assigned to more than one nameservers(A name server translates domain names into IP addresses). The second nameserver responds if the first server(primary server) fails. When we make a request to access a website, it locates the corresponding nameserver which finds the server with the corresponding domain name and IP address and gets the correct IP address for the website.