rndc addzone gets permission denied

Jan-Piet Mens jpmens.dns at gmail.com
Sun Jan 12 08:42:15 UTC 2014


> but getting rndc: 'addzone' failed: permission denied, nothing on the logs,
> only received control channel command 'addzone zone.local { type slave;
> file "slaves/zone.local"; masters { 172.31.199.154; }; };' even after rndc
> trace 99.
>
> allow-new-zones yes;
>
> tried with chmod 777 for /var/named, /etc/named, /usr/lib64/bind but
> nothing helps.

named must be able to write into the directory it will create the file
in. Assuming your `directory` option is set to `/var/named`, and seeing
your `file` statement above contains `slaves/zone.local`, the path to
which named will write is

        /var/named/slaves

which must be writeable by the user named is running as.

        -JP


More information about the bind-users mailing list