LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-20-2005, 12:53 PM   #1
havok1977
Member
 
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;
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?

Last edited by havok1977; 04-20-2005 at 12:55 PM.
 
Old 05-25-2005, 09:35 AM   #2
havok1977
Member
 
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.

Cheers

Diego/.
 
Old 04-08-2010, 03:18 PM   #3
dgar
Member
 
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
 
  


Reply



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 12:52 AM
rndc problem jon3k Linux - Software 1 09-08-2004 04:35 PM
named without rndc spank Linux - Newbie 0 12-16-2003 08:52 AM
rndc arokh Linux - Security 1 06-30-2002 04:32 AM
rndc arokh Linux - Security 0 06-30-2002 02:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:59 PM.

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