LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   BIND problem... named will not even start. (http://www.linuxquestions.org/questions/linux-networking-3/bind-problem-named-will-not-even-start-134453/)

SniperDevil 01-13-2004 03:20 PM

BIND problem... named will not even start.
 
Hello, I am trying to configure my own nameservers, ns1.unfclan.com and ns2.unfclan.com.

Originally I was using a free DNS (zoneedit.ccom's free service), but I have decided to make my own, just to make things easier in the long run; i.e. not having to go to ZoneEdit's control panel and add a Zone every time, since I have to do it at my server, too.

Anyways, below is some of my systemlog, and the errors I am receiving:

Code:

Jan 13 15:56:59 creativity named[30450]: starting BIND 9.2.1
Jan 13 15:56:59 creativity named[30450]: using 1 CPU
Jan 13 15:56:59 creativity named[30452]: loading configuration from '/etc/named.conf'
Jan 13 15:56:59 creativity named[30452]: no IPv6 interfaces found
Jan 13 15:56:59 creativity named[30452]: listening on IPv4 interface lo, 127.0.0.1#53
Jan 13 15:56:59 creativity named[30452]: binding TCP socket: address in use
Jan 13 15:56:59 creativity named[30452]: listening on IPv4 interface eth0, 66.79.190.90#53
Jan 13 15:56:59 creativity named[30452]: binding TCP socket: address in use
Jan 13 15:56:59 creativity named[30452]: listening on IPv4 interface eth0:1, 66.79.190.91#53
Jan 13 15:56:59 creativity named[30452]: binding TCP socket: address in use
Jan 13 15:56:59 creativity named[30452]: listening on IPv4 interface eth0:2, 66.79.190.92#53
Jan 13 15:56:59 creativity named[30452]: binding TCP socket: address in use
Jan 13 15:56:59 creativity named[30452]: listening on IPv4 interface eth0:3, 66.79.190.94#53
Jan 13 15:56:59 creativity named[30452]: binding TCP socket: address in use
Jan 13 15:56:59 creativity named[30452]: /etc/named.conf:8: couldn't find key 'rndc.key' for use with command channel 127.0.0.1#960
Jan 13 15:56:59 creativity named[30452]: command channel listening on 127.0.0.1#960
Jan 13 15:56:59 creativity named[30452]: couldn't open pid file '/var/run/named/named.pid': Permission denied
Jan 13 15:56:59 creativity named[30452]: exiting (due to early fatal error)

So it's saying address in use... ?? I don't get this; sure obviously apache is running on this machine, but this is on port 260 (I changed the ports to 260 to debug the problem, but it says the exact same thing with 953).



Below is my /etc/named.conf:


Code:

options {
        directory "/var/named";
        allow-query { any; };
        recursion no;
};

controls {
      inet 127.0.0.1 port 960
              allow { localhost; } keys { rndc.key; };
};

key "rndc-key" {
        algorithm hmac-md5;
        secret "eBjwsmGyeHUmARgABSqC/f2dsokWTr/2NOsrb2x51xM=";
};


// Provide a reverse mapping for the loopback address 127.0.0.1
zone "0.0.127.in-addr.arpa" {
    type master;
    file "/var/named/localhost.rev";
    notify no;
};

zone "." {
        type hint;
        file "/var/named/named.ca";
};

zone "image." {
        type master;
        file "/var/named/image..db";
};

zone "ns1.unfclan.com" {
        type master;
        file "/var/named/ns1.unfclan.com.db";
};

zone "ns2.unfclan.com" {
        type master;
        file "/var/named/ns2.unfclan.com.db";
};

zone "unfclan.com" {
        type master;
        file "/var/named/unfclan.com.db";
};

zone "www.unfclan.com" {
        type master;
        file "/var/named/www.unfclan.com.db";
};

And my rndc key is in rndc.key. Can anybody 'debug' this problem? As you may see, I'm a newbie to BIND, but hence the site's name haha.

Thank you very much in advance for your kind help.

WeNdeL 01-13-2004 03:49 PM

couldn't open pid file '/var/run/named/named.pid': Permission denied

Permissions error man... start there first...

edit: uNF uNF uNF!!!

And note that gamers with the word "sniper" in their name are by default n00bs... :p

SniperDevil 01-13-2004 04:02 PM

1) I'm running as root...

2) what are you talking about uNF uNF uNF???? it's my clan, yes...

3) How are gamers with the word sniper in their names n00bs? it's just the alias i use...

g-rod 01-13-2004 04:27 PM

Sounds like bind might be running already. Run
netstat -pan;
to find what process are listening on which ports.

SniperDevil 01-13-2004 04:43 PM

Heh, I think I just fixed it; I have NOOOOOOOOOO idea what i did LOL


All times are GMT -5. The time now is 04:06 AM.