What is DNS functions types and how it works: Surely you have ever experienced a slow internet connection? Yups, usually a way to speed up internet connections on a PC or smartphone, we have to change to several DNS number options.
Well, usually the DNS that has many choices is the Home DNS. Not only Home, but other providers also have several DNS alternatives.
Oh yes, this DNS is not only to speed up internet connection but also to open blocked sites. Well, for those of you who want to know more about DNS, let’s just watch it!
What is DNS?
DNS stands for the word Domain Name System. DNS is a system that functions to help humans and computers communicate with each other when accessing the internet.
So, this DNS will change the website URL that you type into an IP address, and vice versa. Because basically, humans have to type in the IP address if they want to access a website.
If you type in the IP Address in the form of numbers, then you will have a hard time remembering it. Especially if the numbers are too many.
Then, what is the function of the DNS itself?
After you know what DNS is, you must be wondering what the function of DNS itself is.
Well, here are some functions of DNS that are rarely known:
Translating a domain name into an IP address, and vice versa.
Provides website IP address information based on the domain name entered by humans.
Memorize all IP addresses of a website.
Carry out data on the email server.
Affects internet speed.
So, that’s the function of DNS more or less. Well, DNS itself also has various types. For those of you, who don’t know, continue listening!
Types of DNS that are rarely known
Well, what is really strange for people, it turns out that DNS has various types. For those of you who don’t know, let’s look at the following types of DNS:
1. A Record
This type of DNS A Record contains IPv4 which functions to map domains and subdomains to the IPv4 listed in it.
IPv4 is an IP address with 32 bits and the writing format is aaa.bbb.ccc.ddd.
2. AAAA Record
The next type of DNS is AAAA Record. This DNS contains IPv6 which functions to map domains and subdomains to IPv6 listed in it.
IPv5 is one of the newest IP formats with 128 bits. This format is usually used if the number of IPv4 mapped is still less than the devices connected to the public internet.
3. CNAME Record
The next type of DNS is a CNAME Record. This type is also called ALIAS and functions to create canonical name records by creating an alias for the domain name.
This aliased domain has all the subdomains as well as the same DNS records as the original. Well, usually this DNS is used to point the domain to the same Webhosting.
4. MX Record
The next type of DNS is MX Record. This DNS contains the location information of the mail servers used by the domain.
Well, usually this information will be filled in automatically if we connect the domain to the hosting service used by the Nameserver.
5. PTR Record
The next type of DNS is PTR Record. This type of DNS is commonly referred to as RDNS or Reverse DNS. This DNS is usually only done by the server owner and the settings are also special.
The function is inversely proportional to A Record. Yaps, this DNS will direct the IP to a domain or hostname. That way, we can know who owns the IP.
This type of DNS is very important in the mail server settings. Because if an email sent from a server does not have a PTR record, it will be considered SPAM.
6. NS Record
Going back to NS Records, this type of DNS contains name server records that map a domain name to a list of DNS servers for that domain.
7. SOA Record
Next, there is the SOA Record, this type of DNS contains records at the initial authority or Start of Authority. DNS refers to the DNS servers that provide authoritative information about the internet domain.
This type of DNS also contains domain information that is currently connected to a server’s service.
8. SRV Record
The next type of DNS is the SRV Record. This type of DNS contains general information about location records.
9. TXT Record
The last one is TXT Record. This type of DNS turns out to allow administrators to enter random data into DNS records.
These DNS records are used in the specification of the Sender Policy Framework. Well, usually this type of DNS is used by developers to verify the domain in the search console.
Pros of DNS
Surely you are also wondering, what are the advantages of using DNS on the internet? Well, here are some of the advantages of using the internet:
Make it easy for users to surf the internet
The Internet has become more consistent as it is used
Easier to configure
Safer from hacking.
Now, after you know what DNS is, DNS functions, types of DNS, and its advantages, now it’s our turn to discuss how DNS works. if you want to know, let’s watch it right away!
How Does DNS Work?
You need to know, guys, that how DNS works have stages. Well, it’s better to just see how it works based on the following stages!
1. DNS Query
This DNS Query works by asking for IP Address information. This stage begins when humans type the URL into the address bar. Then the DNS server looks for the information on file hosts.
If the information you are looking for cannot be found, then the server will look for some of the information through the cache.
If you have cleared the cache, then there are 3 steps in the results when the human gives the hostname which then the following DNS answers:
Recursive Query = DNS Resolver will provide relevant information after searching the Root Server or Authoritative Name Server. In addition, this DNS will display an error message where the information cannot be found.
Iterative Query = DNS Resolver will find information on the Root Server and Authoritative Name Server that is closest and most relevant to the DNS Zone.
Non-Recursive Query =At this stage, this server will find the fastest information through the cache.
2. DNS Recursor / DNS Recursive Resolver
When a human enters a URL and does not find valid information in the cache, the DNS Recursor has the first duty of finding the information.
Furthermore, if the information you are looking for cannot be found by the ISP, the system will look for the information to the Root Name Server.
This Root Name Server is a database that is responsible for answering questions about domains and IP addresses. But unfortunately, the server cannot provide the right answer for the information you are looking for.
Eats, but this server wills still forward requests for information to parties who of course know better. This Root Name Server works in alphabetical order, guys.
4. TLD Name Server
If the requested information is not available in the Root Name then the TLD Name Server will accept it by reading the type of information sought to start with the top-level domain.
That way, the system will provide the information and then pass it on to the server that actually has the data that humans are looking for.
5. Authoritative Name Server
After finding the server you are looking for, it is now the Authoritative Name Server’s turn to be on duty. Yups, in this section there is all complete information about the intended site.
If the desired information matches, the system will display the results via the browser. Of course, this result has a certain period of time when looking back again.
So there will always be up-to-date to ensure the desired results. In addition, this information will be stored in a cache form. The goal is to make the Query process faster.
So, that’s an explanation of DNS starting from the notion of DNS, DNS purposes, types of DNS, the advantages of DNS, and how DNS works.
Therefore, don’t forget to share this article with your friends. So that they also know the explanation about DNS 🙂