View Single Post
  #15  
Old 13th February 2009, 14:05
steve51184 steve51184 is offline
Member
 
Join Date: Mar 2008
Posts: 41
Thanks: 0
Thanked 0 Times in 0 Posts
Default

ok i've run into a problem i have ispconfig setup fine and wanted to setup my names servers in ispconfig which i did i then setup dns and i then added a site to the server again all with ispconfig but i noticed bind isn't running and won't start...

Quote:
$ /etc/init.d/bind9 start
* Starting domain name service... bind9 [fail]
i've also looked in /var/log/syslog and found this:

Quote:
Feb 13 12:53:31 H045 named[653]: starting BIND 9.5.0-P2 -u bind -t /var/lib/named
Feb 13 12:53:31 H045 named[653]: found 1 CPU, using 1 worker thread
Feb 13 12:53:31 H045 named[653]: loading configuration from '/etc/bind/named.conf'
Feb 13 12:53:31 H045 named[653]: /etc/bind/named.conf:35: zone 'mymaindomain.com': already exists previous definition: /etc/bind/named.conf:29
Feb 13 12:53:31 H045 named[653]: loading configuration: failure
Feb 13 12:53:31 H045 named[653]: exiting (due to fatal error)
Feb 13 12:54:57 H045 named[724]: starting BIND 9.5.0-P2 -c /etc/bind/named.conf
Feb 13 12:54:57 H045 named[724]: found 2 CPUs, using 2 worker threads
Feb 13 12:54:57 H045 named[724]: loading configuration from '/etc/bind/named.conf'
Feb 13 12:54:57 H045 named[724]: the working directory is not writable
Feb 13 12:54:57 H045 named[724]: /etc/bind/named.conf:35: zone 'mymaindomain.com': already exists previous definition: /etc/bind/named.conf:29
Feb 13 12:54:57 H045 named[724]: loading configuration: failure
Feb 13 12:54:57 H045 named[724]: exiting (due to fatal error)
Feb 13 12:57:02 H045 named[811]: starting BIND 9.5.0-P2 -u bind -t /var/lib/named
Feb 13 12:57:02 H045 named[811]: found 1 CPU, using 1 worker thread
Feb 13 12:57:02 H045 named[811]: loading configuration from '/etc/bind/named.conf'
Feb 13 12:57:02 H045 named[811]: /etc/bind/named.conf:35: zone 'mymaindomain.com': already exists previous definition: /etc/bind/named.conf:29
Feb 13 12:57:02 H045 named[811]: loading configuration: failure
Feb 13 12:57:02 H045 named[811]: exiting (due to fatal error)
Feb 13 13:00:01 H045 /USR/SBIN/CRON[871]: (root) CMD (/root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php &> /dev/null)
Feb 13 13:01:31 H045 named[918]: starting BIND 9.5.0-P2 -u bind -t /var/lib/named
Feb 13 13:01:31 H045 named[918]: found 1 CPU, using 1 worker thread
Feb 13 13:01:31 H045 named[918]: loading configuration from '/etc/bind/named.conf'
Feb 13 13:01:31 H045 named[918]: /etc/bind/named.conf:35: zone 'mymaindomain.com': already exists previous definition: /etc/bind/named.conf:29
Feb 13 13:01:31 H045 named[918]: loading configuration: failure
Feb 13 13:01:31 H045 named[918]: exiting (due to fatal error)
here's the contents of my named.conf file:

Quote:
options {
pid-file "/var/run/bind/run/named.pid";
directory "/etc/bind";
auth-nxdomain no;
/*
* 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;
};

//
// a caching only nameserver config
//
zone "." {
type hint;
file "db.root";
};

zone "0.0.127.in-addr.arpa" {
type master;
file "db.local";
};


zone "mydomain.com" {
type master;
file "pri.mydomain.com";
};


zone "mydomain.com" {
type slave;
file "sec.mydomain.com";
masters { myservers.ip; };
};


//// MAKE MANUAL ENTRIES BELOW THIS LINE! ////


also please not i only have 1 server and have setup both ns1, ns2 on the same server

Last edited by steve51184; 13th February 2009 at 14:09.
Reply With Quote