Knowledge Base ISC Main Website Ask a Question/Contact ISC
How to determine BIND query rates (qps)
Author: Reference Number: AA-00559 Views: 11717 Created: 2011-12-01 18:42 Last Updated: 2017-08-02 18:02 0 Rating/ Voters


How can I find out what query rate my BIND nameserver is handling?


This answer is incomplete

There are other ways of determining the QPS of a server.  This answer provides guidance for the one that is expected to be applicable to the most BIND versions and with a minimum of setup fuss.

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:

statistics-file "/var/named/named.stats";

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:

rndc stats

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 ++
             402314 QUERY
               2809 UPDATE

You might only see a QUERY counter

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-2018 Internet Systems Consortium

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.

  • There is no feedback for this article
Quick Jump Menu