Why did one DNS lookup take 240 ms?

Inspect six DNS packets and find the lookup with the longest wait. Download the same demonstration PCAP to check the individual frames.

Try the capture

An office workstation looks up the same name three times. Use this synthetic capture to see where the second lookup spent its time.

Download sample PCAP

sample-office.pcap · 624 B

The second DNS reply took 240 ms

From the capture point, all three queries returned the same IPv4 address. The second request waited longer for its reply.

Workstation
192.0.2.10
DNS server
192.0.2.53
Name queried
intranet.example
A record in all replies
198.51.100.20
Request-to-reply interval
FramesDNS IDInterval
1 / 20x410012 ms
3 / 40x4101240 ms
5 / 60x410218 ms

Check the evidence in AnaTraf

  1. Open PCAP Analysis in your AnaTraf instance and drop sample-office.pcap into the upload area. You can analyze the file without connecting a switch mirror port.
  2. Inspect the replay data in DNS analysis and locate resolver 192.0.2.53. The sample contains three requests and three successful replies.
  3. Inspect frames 3 and 4 in the original capture. Both carry DNS transaction ID 0x4101. Their timestamps relative to frame 1 are 1.000 and 1.240 seconds, a gap of 240 milliseconds.

This interval includes transit in both directions and processing at the resolver. To separate those contributions, capture at the resolver as well and compare the same transaction.