couldn't add command channel

Kevin Darcy kcd at daimlerchrysler.com
Thu Mar 14 21:18:09 UTC 2002


The "command channel" error isn't as important as the "pid file" error --
at most, it means you won't be able to control the daemon using the
"ndc" utility.

You should check the permissions of /var/run/named.pid and intermediate
directories. Looks like whatever user you're running named as cannot
write to the file/directory.


- Kevin

Ramdev Wudali wrote:

> Hi :
>   I am a newbie to linux and I would much appreciate any help I get
> with this. and I get the following errors while trying to setup DNS
> and get named to run on my linux firewall machine...
>
> The configuration as it stands right now is:
>
> a Linux box running kernel 2.2.18 (with ip_masq patch applied)
> with 2 ethernet cards (one as an external interface connecting to the
> internet
> and the second card for an internal lan.)
>
> I have been able to successfully run dhcp on the box. and the
> addresses are being issued.
> However when I try and get named running I getthe following errors:
>
> Mar 12 22:04:10 agastya named[4598]: couldn't add command channel
> 0.0.0.0#953: not found
> Mar 12 22:04:10 agastya named[4598]: couldn't open pid file
> '/var/run/named.pid': File exists
> Mar 12 22:04:10 agastya named[4598]: exiting (due to early fatal
> error)
>
> I have tried seeing if removing the named.pid file helps but it did
> not.
>
> I have set up the files in /var/named/<files>
> the named.conf in /etc as well..
> the contents of which are as follows:
> options {
>         directory "/var/named";
>         /*
>          * If there is a firewall between you and nameservers you want
>          * to talk to, you might need to uncomment the query-source
>          * directive below.  Previous versions of BIND always asked
>          * questions using port 53, but BIND 8.1 uses an unprivileged
>          * port by default.
>          */
>         // query-source address * port 53;
>         forwarders {
>                 24.26.163.33;
>                 24.26.163.32;
>         };
>         listen-on {
>                 10.71.2.6;
>                 127.0.0.1;
>         };
> };
>
> // secret must be the same as in /etc/rndc.conf
> key DHCP {
>         algorithm       hmac-md5;
>         secret
> "c3Ryb25nIGVub3VnaCBmb3IgYSBtYW4gYnV0IG1hZGUgZm9yIGEgd29tYW4K";
> };
>
> zone "narasimha.home" {
>         type master;
>         file "narasimha.home";
>         notify no;
>         allow-update { key DHCP; };
> };
> zone "2.71.10.in-addr.arpa" {
>         type master;
>         file "10.71.2";
>         notify no;
>         allow-update { key DHCP; };
> };
>
> //
> // a caching only nameserver config
> //
> zone "."  IN {
>         type hint;
>         file "named.ca";
> };
>
> zone "localhost" IN {
>         type master;
>         file "localhost.zone";
>         allow-update { none; };
> };
>
> zone "0.0.127.in-addr.arpa" {
>         type master;
>         file "named.local";
> };
>
> The files I have in the /var/named directory aare as follows:
>
>  /var/named:
>   total 36
>   drwxr-xr-x    2 named    named        4096 Mar 11 22:16 .
>   drwxr-xr-x   22 root     root         4096 Mar 10 10:04 ..
>   -rw-r--r--    1 root     root          395 Mar 11 22:16 10.71.2
>   -rw-r--r--    1 root     root          195 Mar 11 22:13
> localhost.zone
>   -rw-r--r--    1 named    named        2769 Aug  8  2001 named.ca
>   -rw-r--r--    1 named    named         422 Aug  8  2001 named.local
>   -rw-r--r--    1 root     root          455 Mar 11 22:15
> narasimha.home
>
> Is there something I am missing..?
>
> Thanks again for all the assistance...
>
> Cheers
>
> Ramdev/-



More information about the bind-users mailing list