How can I find out what query rate my BIND nameserver is handling?
BIND produces some basic statistics that can be output to a file.
First you need to enable the statistics by specifying the output file in named.conf in the options section:
The example above shows the default file name and location - you can name and place it anywhere that the named daemon will be able to write to it.
You also need to make sure that you can control the named daemon using rndc. You can refer to the BIND9 Administrator Reference Manual for more details on how to do this.
Restart named (which resets the statistics counters.
For a quick estimate of query rate over 24 hours, run named for this period and then use rndc to dump the statistics that have been collected over this period:
Add together the first two entries in the output and then divide by the number of seconds that named has been running for. The entries in the file will look something like this:
++ Incoming Requests ++
Not all servers receive dynamic updates - in which case just use the query count when calculating qps
For more sophisticated monitoring of query rates, you can schedule rndc stats to run more frequently (every hour or every 5 minutes or less) and then use scripting techniques or import the statistical data into an analysis tool so that you can see fluctuating query rates over time - and in particular to observe your peak query rates.
© 2001-2016 Internet Systems ConsortiumPlease help us to improve the content of our knowledge base by letting us know below how we can improve this article. If you have a technical question or problem on which you'd like help, please don't submit it here as article feedback. For assistance with problems and questions for which you have not been able to find an answer in our Knowledge Base, we recommend searching our community mailing list archives and/or posting your question there (you will need to register there first for your posts to be accepted). The bind-users and the dhcp-users lists particularly have a long-standing and active membership.ISC relies on the financial support of the community to fund the development of its open source software products. If you would like to support future product evolution and maintenance as well having peace of mind knowing that our team of experts are poised to provide you with individual technical assistance whenever you call upon them, then please consider our Professional Subscription Support services - details can be found on our main website.