How do I get statistics from BIND 9.3.2?

Søren soren at removethis.com
Fri Feb 24 22:47:55 UTC 2006


> I get this error when I try to run "rndc stats". Why? I have tried to 
> Google without any useable result.
>
> root at pc# rndc stats
> rndc: 'stats' failed: file not found
>
> /var/named/etc/namedb/named.conf:
> options {
> [CUT]
> listen-on { 127.0.0.1; 192.168.1.6; };
> directory "/etc/namedb";
> pid-file "/var/run/named/pid";
> zone-statistics yes;
> statistics-file "/var/named/var/log/named.stats";
> };

Ahhh.. got it. I forgot I run named in a jail and therefore
statistics-file "/var/named/var/log/named.stats";
must instead be
statistics-file "/var/log/named.stats";

Now I got a lot of statistics in the stats file :-) Now I must find out how 
to get it via SNMP (I am looking into this now).




More information about the bind-users mailing list