Just wondering - BIND 9.4.3b2 -g

Alan Zoysa alanzoysa at gmail.com
Tue Oct 14 17:13:55 UTC 2008


>
> I am running more than 1 named on different ports and interfaces
> but on the same hardware.
>
> #
> # /home/toit/named.conf - configuration for BIND 9
> #
>
> options {
>  directory "/home/toit";
>  pid-file "/home/toit/named.pid";
>  dump-file "/home/toit/named_dump.db";
>  statistics-file "/home/toit/named.stats";
> ...
>
> include "/home/toit/etc/named.keys";
> include "/home/toit/etc/rndc.key";
>
>
> The others with different /home/user look pretty much the same.
> Now named complains:
>
>
> 14-Oct-2008 15:43:17.859 starting BIND 9.4.3b2 -u toit -c named.conf -g
> 14-Oct-2008 15:43:17.869 loading configuration from '/home/toit/named.conf'
> 14-Oct-2008 15:43:17.870 the working directory is not writable
>

in above case, the named working directory: is "/home/toit"
though the owner has write permission, try giving write permission to the group

>
> 6:/home/toit# ls -la
> total 52K
> drwxr-xr-x  8 toit toit 4.0K 2008-10-14 15:48 .
> drwxr-xr-x 14 root root 4.0K 2008-10-05 18:38 ..
> drwxr-x---  2 toit toit 4.0K 2005-02-01 13:59 dev
> drwxr-xr-x  2 toit toit 4.0K 2008-10-14 15:39 DNSOP
> drwxr-xr-x  2 toit toit 4.0K 2006-08-07 14:13 etc
> drwxr-xr-x  2 toit toit 4.0K 2007-11-15 19:54 Master
> - -rw-r--r--  1 toit toit 1.9K 2008-10-14 15:40 named.conf
> drwxr-xr-x  2 toit toit 4.0K 2007-12-18 16:22 slave
> drwxr-xr-x  5 toit toit 4.0K 2005-02-01 13:59 var
>
>
> Looks writeable to me but maybe I missed something.
>
>
> 14-Oct-2008 15:43:17.887 none:0: open: /etc/rndc.key: file not found
> 14-Oct-2008 15:43:17.887 couldn't add command channel 127.0.0.1#953: file not found
> 14-Oct-2008 15:43:17.887 none:0: open: /etc/rndc.key: file not found
> 14-Oct-2008 15:43:17.887 couldn't add command channel ::1#953: file not found
> 14-Oct-2008 15:43:17.887 ignoring config file logging statement due to -g option
>
>
>
> Got rid of these, copying /home/toit/etc/rndc.key to /etc/rndc.key
>
> But now the next named complains:
>
>
> 14-Oct-2008 16:02:31.710 starting BIND 9.4.3b2 -u semelle -c named.conf -g
> 14-Oct-2008 16:02:31.720 loading configuration from '/home/semelle/named.conf'
> 14-Oct-2008 16:02:31.722 the working directory is not writable
>
> 14-Oct-2008 16:02:31.743 couldn't add command channel 127.0.0.1#953: address in use
> 14-Oct-2008 16:02:31.744 couldn't add command channel ::1#953: address in use
> 14-Oct-2008 16:02:31.744 ignoring config file logging statement due to -g option
>
>

if write permission to group of directory works in toit case, do it
for semelle also.
Use another localnet address for rndc port 953, for example 127.0.0.2.
You can specify this in controls {
  ...
};
directive.
Similarly for IPv6 address.

>
> All nameds are running, only I am at war with /etc/init.d and have to start and
> stop them manually using kill not rndc.
>
>
> Kind regards
> Peter
> - --
> Peter and Karin Dambier
> Cesidian Root - Radice Cesidiana
> Rimbacher Strasse 16
> D-69509 Moerlenbach-Bonsweiher
> +49(6209)795-816 (Telekom)
> +49(6252)750-308 (VoIP: sipgate.de)
> mail: peter at peter-dambier.de
> http://www.peter-dambier.de/
> http://iason.site.voila.fr/
> https://sourceforge.net/projects/iason/
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFI9K40oQA0qetcyygRAk8PAJ4/Z9MUm5r6f3a8Rzn01J2qiaO0twCdEP2c
> uG1lzKS+bz9nMy/i4NbZUQs=
> =CbVB
> -----END PGP SIGNATURE-----
>
>



-- 

best regards,
Alan.


More information about the bind-users mailing list