What is a DNS?
As we saw in the article "What is an IP address?", Each device connected to a network must have an IP address assigned, by means of which it will be possible to send and receive data between different devices. But if we want to access a website without knowing its IP address, we must know what your DNS is.
Therefore, we can say that the DNS (Domain Name System) is a database where information is stored among which is the association between an IP address and a domain name.
Let's see the following example:
Suppose we want to access the google website. To do this we must type "www.google.com" in the browser's address bar. But we could also access the website by entering the IP of the "Google" DNS server, for example "18.104.22.168".
In this image we can see what happens since we entered "www.example.com" in the address bar of the browser until we can see the requested web page.
The main function of DNS servers is to translate domain names into IP addresses.
There are different types of DNS servers: Primary and secondary.
Each domain and subdomain has a primary server and one or more secondary servers.
The primary server is the one that contains the original information, while the secondary server works as backup in case of a failure in the primary server and obtains the information by requesting it periodically from the primary server.
Share on Twitter