[hobbit] Which DNS query is causing delays

Henrik Størner henrik at hswn.dk
Mon Oct 12 22:01:47 CEST 2009


In <1F7B01020EC4D04DA17703634B9E888E0E96BEFE at ULPGCTMVMAI003.EU.COLT> "Ward, Martin" <Martin.Ward at colt.net> writes:

>> It will only log those DNS lookups that fail, not those that succeed.

>OK, so it now seems likely that all the DNS tests are working, they are jus=
>t taking a very long time to do it, so the question is: Is there an easy wa=
>y to get the DNS resolving times for all my Xymon DNS queries without havin=
>g to view every web page?

The only way I can think of would be to run bbtest-net with the "--debug"
option; that will log lines like (from the demo site):

2009-10-12 21:57:50 Adding hostname 'wifi.hswn.dk' to resolver queue
2009-10-12 21:57:50 Adding hostname 'mail.hswn.dk' to resolver queue
2009-10-12 21:57:50 Adding hostname 'www.hswn.dk' to resolver queue
2009-10-12 21:57:50 Adding hostname 'webmail.hswn.dk' to resolver queue
2009-10-12 21:57:50 Adding hostname 'news.hswn.dk' to resolver queue
2009-10-12 21:57:50 Processing 13 DNS lookups with ARES
2009-10-12 21:57:50 Got DNS result for host wifi.hswn.dk : 172.16.11.1
2009-10-12 21:57:50 Got DNS result for host mail.hswn.dk : 172.16.10.2

which shows that my DNS lookups take less than a second. You have to
do the subtraction manually to get the time spent on each lookup,
but it should still be fairly easy to spot those that are slow.


Regards,
Henrik




More information about the Xymon mailing list