Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 04-20-2005, 01:53 PM   #1
Registered: Apr 2005
Distribution: Mint KDE on the Desktop, Debian on the Server
Posts: 66

Rep: Reputation: 15
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;

controls {
inet port 953
allow {; } keys { "rndc-key"; };
# End of named.conf

# Start of rndc.conf
key "rndc-key" {
algorithm hmac-md5;

options {
default-key "rndc-key";
default-port 953;
# End of rndc.conf

I have searched the web with google for a while, but to no avail, any ideas?

Last edited by havok1977; 04-20-2005 at 01:55 PM.
Old 05-25-2005, 10:35 AM   #2
Registered: Apr 2005
Distribution: Mint KDE on the Desktop, Debian on the Server
Posts: 66

Original Poster
Rep: Reputation: 15
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.


Old 04-08-2010, 04:18 PM   #3
Registered: Jun 2005
Location: Candia, NH
Distribution: Ubuntu, FC, RHE3, RHE4, CentOS
Posts: 121

Rep: Reputation: 15
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
rndc Ammad Linux - Networking 2 12-31-2004 01:52 AM
rndc problem jon3k Linux - Software 1 09-08-2004 05:35 PM
named without rndc spank Linux - Newbie 0 12-16-2003 09:52 AM
rndc arokh Linux - Security 1 06-30-2002 05:32 AM
rndc arokh Linux - Security 0 06-30-2002 03:52 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:52 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration