The Domain Name System, DNS for short, is one of the most important protocols on the internet, and yet relatively few people understand its purpose. DNS is a protocol which governs how computers exchange data online. Its purpose, simply stated, is to match names with numbers, helping to convert memorable domain names (such as, into an IP address (such as for that your browser can use.

DNS is essentially a map or a phone book of the internet. As each device and website connected to a network has its own IP address, without DNS we would be forced to keep our own records of which domain names match which IP addresses, which would make the internet much more difficult to use!

The purpose that DNS serves, therefore, is relatively straightforward, but the process itself is not, particularly as there are billions of active IP addresses in use, and billions of DNS requests occurring at any given time.

In this article we will aim to explain how the Domain Name System works, explaining each step from the first query to the moment a webpage loads on your browser.

How does DNS Work?

To the end-user, DNS lookup appears to occur instantaneously, requiring no more than the domain name and a tap of the enter key. However, there is plenty of heavy lifting occurring behind the scenes, with the request, in most cases, passing between four servers before finally matching the domain name with the IP address and loading the webpage.

Here are the four servers involved in the DNS protocol:

DNS Recursor – The main function of the DNS Recursor is to receive the initial query and to pass it on to the relevant server.

Root Nameserver – The Root Nameserver takes the first step in resolving the domain name entered in the initial query into an IP address.

TLD Name Server – The Top Level Domain Server (TLD) is where the last portion of an address (e.g. .com) is hosted.

Authoritative Nameserver – In the last step in the process, the Authoritative Nameserver returns the requested hostname (if it has access to it), back to the DNS Recursor resulting in the webpage being loaded.

DNS Recursor

Every DNS request begins with a query. For example, when you enter into your web-browser your browser proceeds to send a query over the internet to find the matching IP address for that domain name. The first step in this process is for the browser to query the DNS Recursor (also known as a recursive resolver) which can be operated by your ISP, a wireless provider, or a third-party. In this first step, the DNS Recursor acts as a middle-man, connecting your query with the relevant IP address to answer the question of which IP address is associated with the initial query.

Root Nameserver

The Root Nameserver is the first type of DNS server that the DNS Recursor talks to on the road to resolving your query. There are 13 sets of root servers in over 300 locations across the globe, and each one holds DNS information about top-level domains such as .com. There are also thousands of servers supporting the Root Nameservers, located according to where internet demand is the highest. The Root Nameserver helps to translate the original text-based query into a language, such as IP addresses, which computers can understand.

TLD Nameserver

The Top Level Domain (TLD) Nameserver provides the next piece in the puzzle by answering the initial query with the IP address of the domain’s name server. Similar to the Root Nameservers, the TLD Nameservers have 4-13 nameservers across many different locations. The main purpose of the TLD is to store the address information for second-level domains (such as

Authoritative Nameserver

The Authoritative Nameserver is the final step in the DNS process. In this step, the Authoritative Nameserver is able to match an IP address with the requested hostname and returns it to the DNS Recursor. Armed with the matching IP address for the initial domain name query, the DNS Recursor is able to tell your browser what the requested IP address is. Finally, your web browser uses the newly learned IP address to reach the website, and to load the webpage you initially requested!

There are exceptions, deviations, and many layers of extra detail to the DNS process, including caching and non-recursive queries. However, the fundamental process is that which we have outlined in this article, where the initial query proceeds through four servers – DNS Recursor; Root Nameserver; TLD Name Server; Authoritative Nameserver – before the matching IP address and domain name are returned to your browser.

If you would like to monitor and enhance the performance of your website, StatusCake provides a suite of website performance monitoring tools which are easy to set-up and use, and provide you with invaluable insights into how your website’s performance is impacting your customers’ experiences.

Click here, to start your free trial today!

Share this

More from StatusCake

statuscake github

StatusCake GitHub Projects

4 min read I allows users of the platform to come up with custom ways of interacting and making our tools work for their specific needs. In this blog post I’m going to look at a few recent projects on GitHub that use the StatusCake API to either save you time or do something interesting with your test data.  


The one where the Lloyds Banking Group suffered downtime

2 min read It’s estimated that over 18 million people in the UK use online banking. So when the Lloyds, Halifax, and the Bank of Scotland online banking platforms all suffered partial downtime, millions of people were unable to access their accounts properly. Find out more here!

google maps down

Website downtime: The one where Google Maps went down

2 min read March saw many of the big tech companies have technical issues with their products and services. But the biggest one was by far the colossal Google; Google Maps experienced the much dreaded website downtime impacting thousands of users across the globe. It was reported online that Google Maps had suffered a partial outage meaning that many couldn’t access the location tool. Read all about it here.

website accessibility
How To

Website accessibility for all, by all

4 min read
It is so important that every aspect of the web is accessible to all, and if – like me – you work in digital, then it is our responsibility that we make that happen. Here’s how!


The hottest new UI trends for 2022 (and how to achieve them!)

4 min read The web as a whole is constantly evolving and alongside this comes fantastic innovations in how we display content to the user. Some companies are really leading the way when it comes to innovative user interfaces, so in this blog post I will be highlighting a selection of the trends that these companies are pushing forward and how you can recreate them yourself on your own site.

Want to know how much website downtime costs, and the impact it can have on your business?

Find out everything you need to know in our new uptime monitoring whitepaper 2021

*By providing your email address, you agree to our privacy policy and to receive marketing communications from StatusCake.