query time logging

Philippe.Simonet at swisscom.com Philippe.Simonet at swisscom.com
Mon Dec 5 16:26:10 UTC 2016


rndc stats         Write server statistics to the statistics file

RTT for the request (recursive too), but maybe enough for you client ...


++ Resolver Statistics ++
[View: default]
              655342 queries with RTT < 10ms
              170144 queries with RTT 10-100ms
               21577 queries with RTT 100-500ms
                1454 queries with RTT 500-800ms
                2604 queries with RTT 800-1600ms
                2589 queries with RTT > 1600ms

-----Original Message-----
From: bind-users [mailto:bind-users-bounces at lists.isc.org] On Behalf Of /dev/rob0
Sent: vendredi, 2 décembre 2016 16:56
To: bind-users at lists.isc.org
Subject: Re: query time logging

On Fri, Dec 02, 2016 at 01:37:17PM +0100, Ivan Fabris wrote:
> I'm runnig some analisys on my BIND instances, I'm interested in find 
> out how much time it takes every single query, but I' can't find and 
> option to show this information in the log The dns is used by our 
> customers and they ask for detailed reports ( they'll never read ... 
> :)


> It would be a little clumsy, and often meaningless, to subtract the 
> first line's timestamp from the last one .... so I hope there is a way 
> to show "query_exec_time=xxxns" somewhere I'm running BIND 9.10 and 
> 9.11-P1 in a Centos 7, with debug level
> 99

There's a compile-time configure option, "--enable-querytrace", which might do what you want.  It will also hurt performance and eat your system resources.  You can try it, but it might not be worth it.

You might also want to look at dnstap.  NOTE: I have not tried either, so I don't know if they'll report what you want to see.
  Offlist GMX mail is seen only if "/dev/rob0" is in the Subject:
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from this list

bind-users mailing list
bind-users at lists.isc.org

More information about the bind-users mailing list