Performance Vision is now a part of Accedian

Learn More »
>>DNS SERIES #3 : Troubleshooting DNS Protocol Errors

DNS SERIES #3 : Troubleshooting DNS Protocol Errors

By |2018-07-09T12:27:50+00:00October 23rd, 2017|Categories: Performance Troubleshooting|

This is the third and final article of a series (article 1, article 2) covering some important aspects of the DNS protocol for troubleshooting application performance issues.

Many applications perform name resolution through DNS queries. As explained in the first article, this provides much more flexibility compared to working with fixed IP addresses. The drawback of adding this process in an end-to-end application chain is that it can have disastrous performance impacts in case this process does not perform properly due to DNS protocol errors.

Troubleshooting DNS performance

The result of a DNS query can fall into one of the following categories:

  • DNS request is successful
  • DNS request has been received by the DNS server but has not been processed properly and the client gets an error message
  • The client does not receive an answer from the DNS server

When troubleshooting DNS performance issues, it’s important to quickly assess DNS query processes:

  • Are the DNS processes successful? Always? For each user and request name?
  • Are successful DNS processes performant enough according to the baselines?
  • Which DNS processes are unsuccessful and why? No answer? Specific problems encountered?

Successful but non-optimal DNS processes

Let’s take a simple example. In enterprise environments, each client’s TCP/IP stack is normally configured to use a local DNS server. In complex multi-site architectures, it’s not uncommon that clients use remote DNS servers. Instead of using the local network, each DNS request traverses the whole Wide Area Network (WAN), which adds latency.

Bypassing the local DNS server by using external DNS services is also often encountered in production environments. This can have an impact on overall network and application performance as the client will not take advantage of extra features such as caching supported by the local DNS server.

With SkyLIGHT PVX, troubleshooting DNS performance is as simple as viewing the global DNS performance dashboard:

troubleshooting DNS performance globally with SkyLIGHT PVX DNS performance dashboard

In this particular case, you notice a DNS performance problem at 14:04.

By clicking on this peak, you can then see which client has been impacted as well as the DNS resolution processes that were involved:

troubleshooting DNS performance by client IP

In this case, the client was, requesting the name “” to the local DNS server This request was successful (Response Code: “NoError”) but the entire DNS resolution process took 15.7 seconds! By looking at the corresponding network-related KPIs (by clicking on the “L3” icon at the left), you can quickly correlate network performance to this particular DNS request process to determine whether the network was to blame for this or not.

As mentioned before, it’s also important to check whether the DNS servers are used appropriately (i.e., no external DNS servers and the proper performance of local DNS servers).

The “Top DNS Servers” view provides you with the correct and concise information:

As you can see here, the DNS server at seems to have some performance problems as its performance is not stable—you can see a huge deviation bar and an average DNS process time of 2.5 seconds. Furthermore, 4 of the 37 DNS requests have not been successful. This is something to look in to when further troubleshooting DNS performance.

Unsuccessful DNS process: error response codes

In a DNS response packet, you’ll find the response code in a specific flag, such as shown in the Wireshark trace below:

DNS response packet in a Wireshark trace

There are many different error codes supported by DNS.

These are identified by SkyLIGHT PVX and can be filtered in case you intend to focus on one or more DNS response messages in particular:

DNS response dropdown menu

From the perspective of troubleshooting DNS performance, the main DNS response codes we are interested in are the following:

  • Code 0: No error
  • Code 1: Format error – query cannot be interpreted
  • Code 2: Server failure – process impossible
  • Code 3: Name error – domain name does not exist
  • Code 4: DNS query type not implemented on the DNS server
  • Code 5: Refused – name server refuses due to policy

If everything goes fine, the response code should be “0” and the related network performance should be good (i.e., the duration of the whole DNS request/response process should not exceed some milliseconds depending on your IT infrastructure).

All other codes mentioned are related to DNS issues.

So, the first step in troubleshooting DNS-related problems is to get an overview of all responses codes and corresponding performances.

With SkyLIGHT PVX, this is achieved by visualizing the DNS Requests Overview dashboard:

SkyLIGHT PVX DNS Requests Overview dashboard

Referring back to the first DNS blog article, you should notice on the first line of this dashboard that 411 DNS requests for IPv4 addresses (Request Type “A”) did not succeed. In this case, the problem is that the requested name simply does not exist (Response Code = 3).

The next logical step is to check which FQDNs were requested:

SkyLIGHT PVX FQDN dashboard

As you can see, the FQDN “ntp.labo.securactive.lan” does not exist either. You can also view all clients that have requested this FQDN in order to further troubleshoot and solve the problem.

DNS queries without responses

DNS queries that are issued and that do not generate any response back are situations that should be clearly identified for further analysis. They can be the sign of various issues such as:

  • Bad TCP/IP stack configuration of the endpoints that point to a non-existing or decommissioned DNS server
  • DNS server overload
  • Network-related problems

With SkyLIGHT PVX, you can easily identify such DNS requests by looking at the DNS Requests Overview dashboard:

SkyLIGHT PVX DNS Requests Overview dashboard

We can see from this dashboard that 5 requests for IPv4 addresses did not receive an answer. Which one(s) exactly?

Well, it’s quite easy to determine with SkyLIGHT PVX. Just click on the “+” sign on the left to get the answer:

IP addresses that didn't receive a response

All these failed requests have been sent to the same DNS server at

Perhaps this server is down. How can we check this? Again, quite simple by filtering on this particular DNS server IP address and requesting all DNS processes that occurred during this particular chosen timeframe:

DNS processes during the target timeframe

As you can notice, this DNS server seems to be up and running seeing it answered some other requests correctly.

The troubleshooting process can continue by looking to network-related KPIs and so on.


DNS is an important process in today’s business applications. Bad or non-optimal name resolution processes can have a dramatic impact on the overall applications performances. SkyLIGHT PVX can decode DNS transactions at layer 7, providing you with the ability to quickly analyze and troubleshoot complex DNS-related performance issues.


About the Author:

Thierry Notermans
Thierry Notermans is the founder and Managing Director of Majutec, which specializes in delivering ICT and management consultancy services to help customers develop and manage their IT-driven business and organization. (LinkedIn profile)