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.