alunablue -

Get started Bring yourself up to speed with our introductory content.

The 3 types of DNS servers and how they work

DNS is a core internet technology, instrumental in mapping human-readable domains into corresponding IP addresses. Learn about the three DNS server types and their roles in the internet.

Not all DNS servers are created equal, and understanding how the three different types of DNS servers work together to resolve domain names can be helpful for any information security or IT professional.

DNS is a core internet technology that translates human-friendly domain names into machine-usable IP addresses, such as into The DNS operates as a distributed database, where different types of DNS servers are responsible for different parts of the DNS name space.

The three DNS server types server are the following:

  1. DNS stub resolver server
  2. DNS recursive resolver server
  3. DNS authoritative server

Figure 1 below illustrates the three different types of DNS server.

A stub resolver is a software component normally found in endpoint hosts that generates DNS queries when application programs running on desktop computers or mobile devices need to resolve DNS domain names. DNS queries issued by stub resolvers are typically sent to a DNS recursive resolver; the resolver will perform as many queries as necessary to obtain the response to the original query and then send the response back to the stub resolver.

Types of DNS servers
Figure 1. The three different types of DNS server interoperate to deliver correct and current mappings of IP addresses with domain names.

The recursive resolver may reside in a home router, be hosted by an internet service provider or be provided by a third party, such as Google's Public DNS recursive resolver at or the Cloudflare DNS service at

Since the DNS operates as a distributed database, different servers are responsible -- authoritative in DNS-speak -- for different parts of the DNS name space.

Figure 2 illustrates a hypothetical DNS resolution scenario in which an application uses all three types of DNS servers to resolve the domain name into an IPv4 address -- in other words, a DNS address resource record.

DNS servers interoperating
Figure 2. DNS servers cooperate to accurately resolve an IP address from a domain name.

In step 1, the stub resolver at the host sends a DNS query to the recursive resolver. In step 2, the recursive resolver resends the query to one of the DNS authoritative name servers for the root zone. This authoritative name server does not have the response to the query but is able to provide a reference to the authoritative name server for the .com zone. As a result, the recursive resolver resends the query to the authoritative name server for the .com zone.

This process continues until the query is finally resent to an authoritative name server for the zone that can provide the answer to the original query -- i.e., what are the IP addresses for Finally, in step 8, this response is sent back to the stub resolver.

One thing worth noting is that all these DNS messages are transmitted in the clear, and there is the potential for malicious actors to monitor users' internet activities. Anyone administering DNS servers should be aware of DNS privacy issues and the ways in which those threats can be mitigated.

This was last published in September 2019

Dig Deeper on IPv6 security and network protocols security

Join the conversation


Send me notifications when other members comment.

Please create a username to comment.

What are the greatest challenges facing your organization in supporting three different types of DNS servers?
I am thankful to you from the bottom of my heart, for sharing such interesting information regarding DNS server. I had been very excited to know how many types of DNS servers are there. Also, I got surprised when I read your article, the clarification that there are three types of DNS servers. (a) DNS stub resolver server (b) DNS recursive resolver server(c) DNS authoritative server. Apart from this, I faced a frequent issue in my daily life, like most of the time I was not able to connect the internet on a single go. When I reached on this link, I got a complete solution and now I can connect the internet in one go. Someone who is searching for How to connect with the internet can go with the same link and connect with your internet.