DNS, short for Domain Name System, is one of the most important concepts in the internet and technology area. Its basic function is to convert the human-readable domain name, like checkdns.in to a computer-friendly IP address, like 18.104.22.168
IP addresses are assigned to each device connected to the internet and it helps to find other devices available on the internet. In very common terms, it’s like finding a house address from the street name.
How do DNS works?
When a user enters a URL in the browser address bar, it checks for the IP address behind that domain which connects to the actual server.
Above is a fantastic illustration of how DNS works to find the IP address behind the domain. DNS Servers are special servers which hold DNS records of domain names.
What are DNS records?
DNS records are different type of data assigned to the domain name to connect to web-based services. Multiple different types of records exist with only 5-6 using regularly.
It’s very safe to say that this is the most popular and common type of DNS records. It stores IPv4 of a specific domain or subdomain.
Commonly used to associate a www subdomain with the primary or canonical domain, such as www.example.com with example.com.
Used to associate a domain with an email service. It can hold multiple records usually pointing to the same service provider.
Used to associate any arbitrary text to a domain, like SPF records, domain verification, etc.
What is DNS Propagation?
When you change the DNS records of any domain it takes time for all the DNS servers to fetch new data. During this time, some DNS servers will show old records while others will show new records. Online tools like CheckDNS.in shows the status of DNS Propagation.
DNS records also get changed when you move your website to a different server. But in case if you plan to change the domain name here is a cool way to redirect all the traffic with the subdirectory location to your new domain – https://harshitpeer.com/blog/how-to-redirect-all-traffic-to-the-new-website-using-htaccess/