Did you know it is impossible to view website without DNS?
What Domain Name System?
The Domain Name System is a global archive where the internet domain names are placed and translated into Internet Protocol addresses. The DNS will map the domain people use to view the website to the computer’s IP to locate the website.
In simple terms, DNS will translate hostnames to IP addresses and vice versa.
The concept of DNS can be compared with the Roll number of a student to the student’s actual name. So, what the Domain Name System does is locate the IP Address to display the website. Similarly, if you don’t have the domain name, the website can sometimes be accessed with its IP Address.
Parts of a Domain:
A domain name is made up in order of two or more segments. Each part or component is separated by a period. The format is the same as the host section of a URL. The first part is unique to the host, with each following piece charting the host in the domain name hierarchy.
Servers that are called for while loading a Webpage:
- Authoritative Nameserver
- Recursive (Caching) Server
- TLD Nameserver
- Root Nameserver
First, the user types the domain name into the web browser, and the query travels to a DNS recursive resolver which then queries the root nameserver. The root nameserver then responds to the resolver with the Top Level Domain server. This TLD will respond with the IP of the domain’s nameserver. Ultimately, the query is sent to the domain’s nameserver, which is returned to the resolver. The DNS responds to the web browser. After this, the browser makes an HTTP request to the IP Address, and the web page is rendered.
Domain Name System caching reduces the time taken to respond to a query. Caching will store previous responses and deliver them faster the next time. However, the negative results will also be cached.
Cached data will periodically time out as each record has a TTL field.
Did you know that because of caching, there will be DNS Propagation Delay.
Features of DNS:
- Global Distribution: Data is managed locally but can be accessed globally. Domain Name System Lookup can be done on any device, and Remote data is cachable.
- Loose Coherency: The DB is internally consistent, and each zone has a serial number. Changes done to the master branch are replicated according to the zone administrator.
- Scalability: There is no limit to the size of the database and the number of queries.
- Reliability: Clone of the data can be made (data can be sent to many slaves). These protocols can use User Datagram Protocol or Transmission Control Protocol.
- Dynamicity: The DB can be updated dynamically. The changes made in the master DB will trigger the clone or the replication.
If you want to learn basic web hosting and domain registration ideas, check this blog out: https://nestnepal.com/web-hosting-and-domain/.