Written by 8:39 am Domain names, Internet

What is Domain Name Resolution?

Domain name resolution is the process by which internet users receive the address of the domain they were looking for.

To be more precise, the domain name resolution is a translation process between the domain name that people use while writing in their browsers and the site’s IP addresses. You need the IP address of a site to know where it is located and load it.

A website could have both IPv4 and IPv6 addresses, and the DNS resolution of a domain name will ask for both of them. The IPv4 address will come in the form of a DNS A record, and the IPv6 will come in a DNS AAAA record.

Let’s get into the details, and see how it works, shall we?

Domain name resolution – Why is it important?

In the world of the Internet, the addresses don’t contain streets and cities. They have numbers and symbols. There are two types of addresses: IPv4 and IPv6. In order to enter a particular website, the user needs to get its IP. Instead of remembering all of the IPs of every website, we simply need to remember the domain name. The domain name is usually not hard to remember, and this makes it easier. When the user types the name of the website, the process of the domain name resolution starts.

So let’s proceed and explain the whole process of DNS resolution.

DNS resolution process

The browser of a user needs to get the IP and sends queries to the name servers. This process involves domain name resolvers. The first answer that your browser will get is the root server, then the TLD (top-level domain). The servers with the TLD of the website you want to visit (com, net, or another) will refer your queries to the next step in searching authoritative servers that know the exact IP address of the domain name. Then the domain name will be resolved.

Experience Industry-Leading DNS Speed with ClouDNS! 

Ready for ultra-fast DNS service? Click to register and see the difference!

Let’s breakdown the DNS resolution step-by-step: 

  1. A user is typing a domain name like cloudns.net into their browser. The user needs an A or AAAA DNS record to resolve the domain name.
  2. If your device’s cache has the IP address of cloudns.net, the domain name resolution will finish here, and the user will be able to open the website. But, if it does not, there will be more steps. The devices keep DNS records for visited sites, depending on the TTL (Time to Live) values of those DNS records. After the time they indicate, they will be deleted, and a new query needs to be performed.
  3. If your computer doesn’t have the needed IP address, it will search for the answer by performing a DNS resolution query. The next destination on the way will be the recursive DNS servers of the internet services provider. They also keep a cache with DNS records of domain names that users have accessed. If the desired site’s DNS records are still there, the user will get an answer to its query and access the site. If not, there will be a series of interactive DNS queries to find the answer.
  4. If the domain name resolution didn’t finish with the previous step, the recursive nameserver would search for the answer. The next step will be to ask the Root server, which is indicated with a “.” sign after the TLD (top-level domain). The Root server does not have an answer about the exact domain name, but it will provide one for the part it is responsible for – it will indicate all the nameservers for the TLD that we asked for. In our case, it will show the nameservers of .net.
  5. The TLD DNS servers will have the answer of which exactly are the authoritative nameservers for the domain you are searching. The TLD servers of .net will have that information for all of the domain names that finish with .net. They will return that answer so the query can continue.
  6. Now that we know where the authoritative nameserver of the domain name we want is, we can ask and get the A and AAAA records to understand the site’s IP address.
  7. The Authoritative nameservers of the domain name will provide the DNS records, the DNS resolution will be made. The recursive nameserver of our ISP and our device will both save the DNS records that we obtained based on their TTL values. That way, if we soon want to visit the site again, we will save time and access the site faster.
  8. Visit the site. Now with the DNS record already obtained, the user can access the site.

DNS resolution process

Do we need to care about it?

The answer is yes! For humans, the DNS resolution process is essential. And if something goes wrong, the use of the Internet by regular users would be extremely difficult. 

So we should be concerned about DNS resolution for two reasons:

  1. The first one is the importance of the speed. When a user accesses your website, the DNS resolution is the first thing that happens. If your page takes too long to load and access, the user will probably leave. That’s why this process needs to be performed fast.
  2. The second one is the availability. The nameserver in charge of handling your domain name needs to be trustworthy. A backup DNS service is a great technique to guarantee that your domain is always reachable by your customers.

What to do if DNS resolution is not working?

1. Check your internet connection. Many times when the domain name resolution fails, the main reason is that you are not connected to the Internet. Check your connectivity and restart your router.

2. Verify the problem is DNS-related. Before diving into DNS-specific solutions, confirm that the issue isn’t related to general connectivity. Try accessing the site with its IP address instead of its domain name. If this works, the problem likely lies with DNS resolution.

3. Obtain DNS server address automatically. Go to the network adapter and open the properties. Then search for the Internet Protocol Version 4 (TCP/IPv4) and open its properties. From there, you can click on Obtain DNS server address automatically. This will allow your computer to receive the DNS settings from the DHCP server.

4. Release and then renew the DHCP IP address. There could be an IP address conflict because of the DHCP server. What you can do as a user is to give up the IP address lease. You can do that with a command from the Command Prompt:

ipconfig /release

After that, you can renew your IP address with the following:

ipconfig /renew

Now your connectivity should be restored.

5. Flush the DNS cache of your device. You can do that by accessing the Command Prompt (as an administrator) and performing the following command:

  • On Windows, open Command Prompt and type: ipconfig /flushdns
  • On macOS, open Terminal and type: sudo killall -HUP mDNSResponder
  • On Linux, the command varies by distribution, but a common one is: sudo systemctl restart nscd

If you had a previous IP address of a domain that is no longer available, now you have deleted it. The device performs a DNS resolution again, and it should get the new IP address.

6. Disable any VPNs or proxies. VPNs and proxies can redirect your network traffic through different servers, which may cause DNS resolution issues. Try disabling them to see if that resolves the issue.

7. Check your hosts file. The hosts file on your computer can override DNS and manually map domain names to IP addresses. Ensure there are no incorrect entries that could be causing conflicts.

  • On Windows, this file is located at C:\Windows\System32\drivers\etc\hosts
  • On macOS and Linux, it’s at /etc/hosts

8. Update your DNS records. If you’re managing a domain and have recently changed DNS records, it might just be a matter of waiting. DNS propagation can take up to 48 hours.

9. The last resort is to contact your ISP and tell them the problem. There is a chance that it is related to its equipment or software, and it can fix it. Or maybe it is blocking some websites on purpose. You can at least try to find an answer from it.

DNS Monitoring: Keeping Resolution on Track

DNS resolution is a silent yet critical driver of the digital world, translating domain names into IP addresses. DNS monitoring services amplify this process’s reliability by offering continuous oversight. These services rapidly identify and help rectify resolution delays or failures, ensuring users can always reach their online destinations.

DNS monitoring checks are essential in validating the seamless operation of DNS resolution, crucial for uninterrupted internet navigation. By querying specific hostnames against expected responses, these checks can swiftly flag a DNS resolution process as operational (UP) or problematic (DOWN).

For example, monitoring might run a command like:

DNS resolution

If the response matches the expected IP, the DNS is considered healthy. This proactive measure ensures DNS performance remains robust, which is vital for network reliability and the overall user experience.

In the event of discrepancies, debugging tools, including Traceroute, assist in tracing the issue to its source, allowing for quick resolution. Thus, integrating DNS monitoring checks is a strategic move to bolster network stability and maintain consistent service delivery.

Why do we need recursive servers?

Theoretically, authoritative nameservers are enough to keep the DNS resolution process running. You can think that the only kind of DNS servers we need is authoritative, but imagine how much load they will need to take if all the complete queries get to them.

For decreasing the load and increasing the speed, there are recursive servers (DNS resolvers) that keep the DNS records with the information needed to access a particular website for a defined period of time. This time is called TTL (time to live), and the process is named DNS cache. There are such recursive servers in the internet service providers that keep the information for many websites for the period of time defined by the TTL.

To make it easier to imagine, it generally functions as a name server, acting as a go-between the customer and the authoritative DNS server. However, without it, you won’t be able to access any website that you want to reach on.

Why DNS Resolution Times Matter and How to Improve Them

DNS resolution times are a key factor in overall website performance, as they determine how quickly a user can begin accessing a webpage. If this process takes too long, it can significantly delay page load time, creating a poor user experience. Delays have a negative impact on e-commerce and business sites, where faster loading speeds directly affect sales and user engagement.

Several factors influence DNS resolution speed are the following:

  • Server Proximity: The closer the authoritative DNS server is to the user, the faster the response. Many DNS providers use Anycast routing, which directs queries to the nearest server, reducing latency and speeding up resolution times.
  • Caching Efficiency: When DNS records are cached effectively, repeat queries can be answered instantly from the cache, avoiding the need for a full DNS lookup. Time to Live (TTL) values determine caching duration – longer TTLs reduce query frequency for stable sites, while shorter TTLs allow for more frequent updates.
  • DNS Provider Choice: A reliable, high-performance DNS provider often has better infrastructure and caching policies, as well as multiple server locations worldwide, which can reduce resolution time. Providers typically offer faster, more secure DNS resolution than ISP default options.

How DNS Resolution Works with IPv4 and IPv6 Addresses

When domain resolution occurs, it can return either IPv4 or IPv6 addresses or both, depending on the server’s configuration and the client’s capability to use either protocol. This flexibility ensures that DNS can adapt to the gradual transition from IPv4 to IPv6, supporting both legacy systems and modern networks.

The two address types serve distinct purposes:

  • IPv4 (Internet Protocol version 4): IPv4 is the older protocol that uses 32-bit addresses, resulting in about 4.3 billion unique IPs. DNS A records are responsible for mapping domain names to their corresponding IPv4 addresses. However, with the explosive growth of internet-connected devices, IPv4 addresses are in short supply, which is where IPv6 steps in.
  • IPv6 (Internet Protocol version 6): IPv6 was developed to provide a vast address space, using 128-bit addresses that allow for 340 undecillion unique IPs. This address space is critical for the future of the internet, as more devices connect daily. DNS AAAA records are responsible for returning IPv6 addresses for a domain. Additionally, the newer version of IP offers benefits beyond capacity, including better routing efficiency and improved security features.

Conclusion

DNS is a very useful system that saves a lot of time and makes our lives easier. After this article, you will know better what happens when you open a web page, how exactly the DNS resolution works, and what it means a domain name resolution.

(Visited 25,247 times, 3 visits today)
Enjoy this article? Don't forget to share.
Tags: , , , , , , , , Last modified: October 30, 2024
Close