HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   DNS - named will not start ?? (http://www.howtoforge.com/forums/showthread.php?t=11207)

brainz 8th March 2007 08:31

DNS - named will not start ??
 
Hi till and falko

The dns named will not start.... when i try to restart it this is what i get..

Quote:

etc/named.conf:3: change directory to '/home/admispconfig/ispconfig/web/multidoc/edit' failed: file not found
help please

regards
brainz

till 8th March 2007 08:33

Please post the content of the file /root/ispconfig/isp/conf/named.conf.master

brainz 8th March 2007 08:36

As Requested till,

Here is the content of /root/ispconfig/isp/conf/named.conf.master

Quote:

options { pid-file "/var/named/chroot/var/run/named/named.pid"; directory "{BINDDIR}"; 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 "named.ca"; }; zone "0.0.127.in-addr.arpa" { type master; file "named.local"; }; zone "{ZONE}.in-addr.arpa" { type master; file "pri.{ZONE}.in-addr.arpa"; }; zone "{DOMAIN}" { type master; file "pri.{DOMAIN}"; }; zone "{DOMAIN}" { type slave; file "sec.{DOMAIN}"; masters { {MASTERS}; }; }; //// MAKE MANUAL ENTRIES BELOW THIS LINE! ////
till also i get this.. which maybe a clue...
Quote:

rndc: connect failed: 127.0.0.1#953: connection refused
regards
brainz

brainz 8th March 2007 08:46

Hi till

i also get this as a email from the server as well

Quote:

WARNING: service dns not running (server: domain.com, port: 53)!

WARNING: service dns not running (server: domain.com, port: 53)!

WARNING: service not running (server: domain.com, port: 10000)!
regards
brainz

martinfst 8th March 2007 09:20

Quote:

Originally Posted by brainz
Hi till

i also get this as a email from the server as well



regards
brainz

That's because the mailserver and probably spamassassin use DNS for various checks. It will go away when you fixed your DNS.
Is the output you posted for /root/ispconfig/isp/conf/named.conf.master really like that? No new lines?

brainz 8th March 2007 10:05

Im sorry but yes there are no new lines

martinfst 8th March 2007 10:56

It should look like:
Code:


options {
        pid-file "/var/run/bind/run/named.pid";
        directory "{BINDDIR}";
        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";
//
// a caching only nameserver config
//
zone "." {
        type hint;
        file "db.root";
};

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

<!-- BEGIN DYNAMIC BLOCK: named_reverse -->
zone "{ZONE}.in-addr.arpa" {
        type master;
        file "pri.{ZONE}.in-addr.arpa";
};
<!-- END DYNAMIC BLOCK: named_reverse -->

<!-- BEGIN DYNAMIC BLOCK: named -->
zone "{DOMAIN}" {
        type master;
};
<!-- END DYNAMIC BLOCK: named -->

<!-- BEGIN DYNAMIC BLOCK: named_slave -->
zone "{DOMAIN}" {
        type slave;
        file "sec.{DOMAIN}";
        masters { {MASTERS}; };
};
<!-- END DYNAMIC BLOCK: named_slave -->

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

Including the newlines. This is a copy of my master file, which I think I have not modified. But please double check. After replacement, update a DNS entry in the panel and check you have new files in /etc/bind (or /var/lib/named/etc/bind, which is symlinked)

brainz 8th March 2007 11:18

Im sorry,

But i think the faile is the same here is mine is a readable format...

Code:


options {
        pid-file "/var/named/chroot/var/run/named/named.pid";
        directory "{BINDDIR}";
        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 "named.ca";
};

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

<!-- BEGIN DYNAMIC BLOCK: named_reverse -->
zone "{ZONE}.in-addr.arpa" {
        type master;
        file "pri.{ZONE}.in-addr.arpa";
};
<!-- END DYNAMIC BLOCK: named_reverse -->

<!-- BEGIN DYNAMIC BLOCK: named -->
zone "{DOMAIN}" {
        type master;
        file "pri.{DOMAIN}";
};
<!-- END DYNAMIC BLOCK: named -->

<!-- BEGIN DYNAMIC BLOCK: named_slave -->
zone "{DOMAIN}" {
        type slave;
        file "sec.{DOMAIN}";
        masters { {MASTERS}; };
};
<!-- END DYNAMIC BLOCK: named_slave -->

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

there is not difference except my named dns will not start....

regards
brainz

till 8th March 2007 11:44

What is in the field "Zonefiles Dir.:" in ISPConfig under management > server > settings on the dns tab?

brainz 8th March 2007 11:49

Quote:

Originally Posted by till
What is in the field "Zonefiles Dir.:" in ISPConfig under management > server > settings on the dns tab?

till this is

Quote:

/home/admispconfig/ispconfig/web/multidoc/edit
regards
brainz


All times are GMT +2. The time now is 11:41.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.