query time logging

/dev/rob0 rob0 at gmx.co.uk
Fri Dec 2 15:56:29 UTC 2016

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:

More information about the bind-users mailing list