What will I learn?
Domain Name System (DNS)
DNS stands for Domain Name System. A DNS translates or resolves a hostname (eg. www.zoho.com) into a language of numbers that a computer can understand (eg. an IP address).
A DNS registrar is an entity that is authorized to facilitate the buying and selling of domain names. They are responsible for mapping IP addresses to domain names. A few examples of DNS registrars are GoDaddy, HostGator, Bluehost, and Domain.com. The database of these IP addresses and domain names is managed by domain registries like Verisign and Public Interest Registry. They manage the Top Level Domains (TLD), which refers to domains that end in .com, .net, and .org.
Nameservers are physical servers that hold information about IP addresses and respective domain names or URLs. They are the foundational units of a DNS.
When a user searches for www.zoho.com on the Internet, the DNS servers lookup for an IP address linked to this domain and render the requested website on the web browser.
There are four types of DNS servers that communicate with each other to resolve a query. They are the:
- Recursive DNS resolver
- Root Nameserver
- TLD Nameserver
- Authoritative Nameserver
When a query for a domain (www.zoho.com) is made from a web browser, it's forwarded to the DNS resolver.
The DNS resolver checks its cache to resolve the query. If it finds the IP address of the requested domain in cache, the query is resolved and www.zoho.com is displayed on the web browser.
If the requested domain is not stored in the cache of DNS resolver, the query is forwarded to the Root Nameserver. The Root Nameserver looks for the extension like '.com', '.net', or '.org' and shares the IP address of the TLD Nameserver with the DNS resolver. It then stores information about the requested extension in its cache.
The TLD Nameserver then runs a query and shares the IP address of the Authoritative Nameserver that stores the IP address of the requested domain (www.zoho.com).
The Authoritative Nameserver resolves the domain query and the website is displayed on the web browser.
DNS records are instructional files on how to handle incoming queries. Some common DNS records are the A Record, CNAME Record, TXT Record, and SRV record.
Note: If the web-hosting provider or the DNS registrar is changed, the DNS server is also changed. Then you must switch your DNS records with the new host.
DNS holds information that helps with email delivery, authentication, and encryption.