How DNS and Name Server Records Work?


If your website is properly hosted and have no further errors and still when you enter the address in your browser, and the page doesn’t appears magically, the primary reason for it can be incorrect DNS settings.


What is DNS?


A DNS i.e. Domain Name System is usually a system that points a domain to physical IP. E.g.  when you enter in your browser’s address bar, the DNS servers resolve it to the physical IP address where the website is hosted.


As there are billions of websites on the internet, the aim of domain name system is to easily remember domain names as addresses for websites in place of remembering their numeric IP address. Also, one can change his or her hosting provider without changing the domain name. What you have to do is simply change the DNS record and point your domain to your hosting provider’s name-servers.


Besides name servers, there are various DNS records like A record, MX records, TXT records, enabling the server to manage several requests from a user.


How name servers work?


A name-server maintains record of your domain name’s DNS entries. E.g.: your website is hosted on XYZ hosting provider’s server, you can use generic name-servers provided by the host, or also you can have your private name-servers at a nominal cost.


A domain name should have as a minimum two name-servers: a primary name server, and a secondary name server.  The reason of using secondary server is when primary server not responds, it works to resolve domain name.


The whole process works like when you type a domain address, your device uses DNS to find name-servers of that particular domain asking for it to the domain’s IP address.  Through the internet, the name-server sends IP address back to your device and your device sends a request to the received IP address requesting for the website. The request then goes to the server where your website is hosted and it sends the web pages to your device.


Other DNS Records:


  • AAAA and A records are known as DNS entries connecting a domain name with specific IP. A record uses IPv4 internet protocol and AAAA record uses IPv6 internet protocol.
  • A CNAME record is a DNS record which is used if we have to define the domain name as an alias for some other domain. Using CNAME generally redirects user from one domain to another domain.
  • Mail Exchanger records are known as MX records which define a mail server to manage email for a specific domain name.
  • A TXT record is usually used authenticate whether an email is really originating from a domain name and if to trust or not that mail.

All off the above DNS records can be easily managed from the domain control panel or web hosting control panel provided by the hosting providers.