Bind Stats in Centos/RHEL5

Just a little tip, if your looking for bind stats and your chrooted

rndc stats

will give you

rndc: 'stats' failed: permission denied

All you have to do is

touch /var/named/chroot/var/named/named.stats
chown named:named /var/named/chroot/var/named/named.stats

Now after you run rndc stats your named.stats fill will be populated with information.


  • Vernon Everett Windows other version Firefox 10.0.2 wrote:

    Hi Nick

    In your Bind Stats in Centos/RHEL5 post, you mention this error, “rndc: ‘stats’ failed: permission denied” and mention how to fix it.

    I am getting this error intermittently.
    Is this what you were referring to, or were you referring to a persistent error?

    You also don’t mention why this happens, or is it just “one of those things”? 🙂

    Thanks for your tips

  • Do you have a named.stats file, when was it last updated?

    I suspect that your getting the error when it tries to update the stats file and /var/named/chroot/var/named/ probably does not have write permission for the user.

  • Vernon Everett Windows other version Firefox 10.0.2 wrote:

    Agreed, it does look like a write permission problem, and it was one of the first things I checked, but if that were the case, I would expect it to fail every time.
    My failures are intermittent. It runs every 10 minutes, but fails once every 10 days or so. No observable pattern. 🙁

Leave a Reply

Your email is never shared.Required fields are marked *

To submit your comment, click the image below where it asks you to...
Clickcha - The One-Click Captcha