LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   BIND9: couldn't add command channel 127.0.0.1#953: address in use (https://www.linuxquestions.org/questions/linux-newbie-8/bind9-couldnt-add-command-channel-127-0-0-1-953-address-in-use-881902/)

davidlt 05-21-2011 12:48 AM

BIND9: couldn't add command channel 127.0.0.1#953: address in use
 
Hi, I am trying to setup rndc, but having some problems:
Code:

21-May-2011 09:26:58.085 starting BIND 9.3.6 -g
21-May-2011 09:26:58.085 using up to 1024 sockets
21-May-2011 09:26:58.112 loading configuration from '/etc/bind/named.conf'
21-May-2011 09:26:58.116 using default UDP/IPv4 port range: [1024, 65535]
21-May-2011 09:26:58.118 using default UDP/IPv6 port range: [1024, 65535]
21-May-2011 09:26:58.128 listening on IPv4 interface lo, 127.0.0.1#53
21-May-2011 09:26:58.130 could not listen on UDP socket: address in use
21-May-2011 09:26:58.130 creating IPv4 interface lo failed; interface ignored
21-May-2011 09:26:58.130 listening on IPv4 interface eth0, 169.254.139.44#53
21-May-2011 09:26:58.130 could not listen on UDP socket: address in use
21-May-2011 09:26:58.131 creating IPv4 interface eth0 failed; interface ignored
21-May-2011 09:26:58.131 not listening on any interfaces
21-May-2011 09:26:58.137 /etc/bind/named.conf:4: couldn't add command channel 127.0.0.1#953: address in use
21-May-2011 09:26:58.138 ignoring config file logging statement due to -g option
21-May-2011 09:26:58.142 zone 2.2.10.in-addr.arpa/IN: loaded serial 2010031500
21-May-2011 09:26:58.145 zone gumstix.local/IN: loaded serial 2010031500
21-May-2011 09:26:58.147 running

Tested /etc/bind with 755 and 777 permissions.

/etc/bind/rndc.key:
Code:

key "rndc-key" {
  algorithm hmac-md5;
  secret "aAXc24fe0cNhSy3Yjluf+uvOVzGL6q1fUd9eXdica5w=";
};

/etc/bind/rndc.conf:
Code:

include "/etc/bind/rndc.key";

options {
  default-server 127.0.0.1;
  default-key "rndc-key";
};

server 127.0.0.1 {
  key "rndc-key";
};

/etc/bind/named.conf contains:
Code:

include "/etc/bind/rndc.key";

controls {
  inet 127.0.0.1 allow { 127.0.0.1; } keys { "rndc-key"; };
};

options {
  directory          "/etc/bind";
  pid-file            "/etc/bind/named.pid";
  dump-file          "data/cache_dump.db";
  statistics-file    "data/named_stats.txt";
  memstatistics-file  "data/named_mem_stats.txt";
  version            "currently unavailable";
  forwarders { 208.67.222.222; 208.67.220.220; };
};

<..>

Thanks,
David

bathory 05-21-2011 02:49 AM

Quote:

21-May-2011 09:26:58.130 could not listen on UDP socket: address in use
21-May-2011 09:26:58.130 creating IPv4 interface lo failed; interface ignored
21-May-2011 09:26:58.130 listening on IPv4 interface eth0, 169.254.139.44#53
21-May-2011 09:26:58.130 could not listen on UDP socket: address in use
21-May-2011 09:26:58.131 creating IPv4 interface eth0 failed; interface ignored
You have some more errors before the one you outlined. What is t he output of:
Code:

netstat -tunapl|grep 53


All times are GMT -5. The time now is 12:08 AM.