RNDC fails: permission denied

Posted by pawz on Stack Overflow See other posts from Stack Overflow or by pawz
Published on 2010-04-20T04:47:36Z Indexed on 2010/04/20 4:53 UTC
Read the original article Hit count: 321

Filed under:
|

Named works great. It creates a pid in /var/run/named/named.pid as expected. It is listening on port 953 as shown by the log: Apr 20 14:42:38 guchuko named[9115]: command channel listening on 127.0.0.1#953 But whenever I try to run "rndc reload" I get: rndc: 'reload' failed: permission denied

What file is it being denied permission to ? It doesn't log anything so I don't know why it's not working. I've compiled bind 9.4-ESV-R1 from source and I've patched it with the mysql mod.

my named.conf:

options {
    directory "/var/bind";

    forwarders {
            203.82.213.101;
            203.188.144.1;
    };

    listen-on-v6 { none; };
    listen-on {
            127.0.0.1;
            192.168.0.6;
    };

    pid-file "/var/run/named/named.pid";
};

logging {
    channel simple_log {
            file "/var/log/named.log" versions 3 size 5m;
            severity debug 5;
            print-time yes;
            print-severity yes;
            print-category yes;
    };
    category default {
            simple_log;
    };
};

zone "." IN {
    type hint;
    file "named.ca";
};

zone "localhost" IN {
    type master;
    file "pri/localhost.zone";
    allow-update { none; };
    notify no;
};

include "/etc/rndc.key"

my rndc.conf

options {
    default-server  127.0.0.1;
    default-key     "rndc-key";
};
server 127.0.0.1 {
    key     "rndc-key";
};
include "/etc/rndc.key";

my rndc.key:

key "rndc-key" {
    algorithm hmac-md5;
    secret "XFc8C+yCLK0mIheTSBj41g==";
};

© Stack Overflow or respective owner

Related posts about bind

Related posts about named

  • How to allow bind in app armor?

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    Question: I did setup bind9 as described here: http://ubuntuforums.org/showthread.php?p=12149576#post12149576 Now I have a little problem with apparmor: If I switch it off, it works. If apparmor runs, it doesn't work, and I get the following dmesg output: [ 23.809767] type=1400 audit(1344097913… >>> More

  • MAMP + Python MySQLDB - trouble installing

    as seen on Server Fault - Search for 'Server Fault'
    I'm currently running the latest version of MAMP on my Snow Leopard OSX, and I'm trying to install MySQLDB. Downloaded: MySQL-python-1.2.3c1 I went into the setup_posix.py and adjusted the location of the mysql_config to the one in MAMP: mysql_config.path = "/Applications/MAMP/Library/bin/mysql_config" When… >>> More

  • Building Awesome WM

    as seen on Ask Ubuntu - Search for 'Ask Ubuntu'
    Hello, I am following these steps in order to build Awesome window manager on 10.04 I am building 3.4 while the tutorial is for 3.1 I installed all of the specified dependencies including cairo. After running cd awesome-3.4 && make I get the following missing dependencies error: Running… >>> More

  • Building Awesome WM

    as seen on Server Fault - Search for 'Server Fault'
    Hello, I am following these steps in order to build Awesome window manager on 10.04 I am building 3.4 while the tutorial is for 3.1 I installed all of the specified dependencies including cairo. EDIT I ran: sudo apt-get install libxcb-xtest0-dev libxcb-property1-dev libxdg-basedir-dev libstartup-notification0-dev… >>> More

  • Building Awesome WM

    as seen on Super User - Search for 'Super User'
    Hello, I am following these steps in order to build Awesome window manager on 10.04 I am building 3.4 while the tutorial is for 3.1 I installed all of the specified dependencies including cairo. EDIT I ran: sudo apt-get install libxcb-xtest0-dev libxcb-property1-dev libxdg-basedir-dev libstartup-notification0-dev… >>> More