rndc works, but rndc stats doesnt
Hey every1,
Im having a little trouble getting statistics from my BIND 9.2.4rc5 running on a Debian Testing server, i got rndc to work: metrolinux:/etc/bind# rndc status number of zones: 7 debug level: 0 xfers running: 0 xfers deferred: 0 soa queries in progress: 0 query logging is OFF server is up and running But when i try to get the stats i get this: metrolinux:/etc/bind# rndc stats rndc: 'stats' failed: permission denied Here are the named.conf and rndc.conf extracts: # Start of named.conf options { directory "/var/cache/bind"; zone-statistics yes; statistics-file "/var/cache/bind/named.stats"; auth-nxdomain no; # conform to RFC1035 } key "rndc-key" { algorithm hmac-md5; secret "XXXXXXXXXXXXXXXXXX"; }; controls { inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "rndc-key"; }; }; # End of named.conf # Start of rndc.conf key "rndc-key" { algorithm hmac-md5; secret "XXXXXXXXXXXXXXXXX"; }; options { default-key "rndc-key"; default-server 127.0.0.1; default-port 953; }; # End of rndc.conf I have searched the web with google for a while, but to no avail, any ideas? |
I found the problem a few days ago and tought i might post it in case anyone runs into the same issue, it just happens that my bind daemon was running owned by the OS user "bind" which didnt have any sort of permissions to the specified stats folder, i just did a quick chown bind folder and now everything works just fine.
Cheers Diego/. |
Fixed it in RHEL 5.4
# lsb_release -d
Description: Red Hat Enterprise Linux Server release 5.4 (Tikanga) # chmod g=u /var/named/chroot/etc |
All times are GMT -5. The time now is 04:38 PM. |