Bind9 Statistics
From: https://www.zytrax.com/books/dns/ch7/statistics.html
DNS BIND Statistics Statements
This section describes all the statements available in BIND 9.x named.conf
relating to statistics. Full list of statements.
statistics-file
[ statistics-file path_name; ]
The pathname of the file the server appends statistics to when instructed to do
so using rndc stats. If not specified, the default is named.stats in the
server's current directory. This option may only be specified in a 'global'
options statement.
zone-statistics
[ zone-statistics yes | no ; ]
If zone-statistics is 'yes', the server will collect statistical data on all
zones (unless specifically turned off on a per-zone basis by specifying
zone-statistics no in the zone statement). These statistics may be accessed
using rndc stats, which will dump them to the file listed in the statistics-file
options. This option may be specified in a zone or a 'global' options statement.