Bind Konfiguration, finde den Fehler nicht

Bind, PowerDNS
Post Reply
talknet
Posts: 17
Joined: 2004-05-19 12:39
Location: Kamp-Lintfort
Contact:
 

Bind Konfiguration, finde den Fehler nicht

Post by talknet »

Hallo,
habe den Beitrag vor ein paar Tagen in der webhostlist erstellt, jedoch fiel mir dann ein, dass hier vielleicht ein paar Profis mehr zu dem Thema sind.
Hallo,
ich stehe leider wieder vor der ungeliebten Aufgabe einen DNS Server wieder einzurichten. /etc/init.d/named start gibt Erfolg aus, aber ein /etc/init.d/named status ein unused und beim named stop kommt ein Warning, named not running. Das heißt für mich ( was ein (tail -30 /var/log/messages; tail -30 /var/log/syslog) | less ) auch bestätigt) dass eine Konfigurationsdatei fehlen muss.

Ich habe im Verzeichnis /srv/www/htdocs/confixx/html/phpdns/bind die Dateien localhost.zone , mastername , named.ca , named.local und phpdns.conf . Wobei in der phpdns.conf nur die Zonendateien eingebunden werden. In der /etc/named.conf wird auch gut drauf verwiesen:

options {
directory "/srv/www/htdocs/confixx/html/phpdns/bind";
listen-on { 127.0.0.1; };
};

include "/srv/www/htdocs/confixx/html/phpdns/bind/phpdns.conf";

zone "." IN {
type hint;
file "named.ca";
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

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

Ich find einfach den Fehler nicht. Wäre nett wenn mir jemand helfen könnte.
chris76
Posts: 1878
Joined: 2003-06-27 14:37
Location: Germering
 

Re: Bind Konfiguration, finde den Fehler nicht

Post by chris76 »

Was sprechen denn die Logs warum er nicht startet?
Gruß Christian

BofH excuses: YOU HAVE AN I/O ERROR -> Incompetent Operator error
talknet
Posts: 17
Joined: 2004-05-19 12:39
Location: Kamp-Lintfort
Contact:
 

Re: Bind Konfiguration, finde den Fehler nicht

Post by talknet »

Feb 11 18:54:14 h57078 named[6988]: starting BIND 9.2.2 -t /var/lib/named -u nam
ed
Feb 11 18:54:14 h57078 named[6988]: using 1 CPU
Feb 11 18:54:14 h57078 named[6990]: loading configuration from '/etc/named.conf'
Feb 11 18:54:14 h57078 named[6990]: /etc/named.conf:2: change directory to '/srv
/www/htdocs/confixx/html/dns/bind' failed: file not found
Feb 11 18:54:14 h57078 named[6990]: /etc/named.conf:2: parsing failed
Feb 11 18:54:14 h57078 named[6990]: loading configuration: file not found
Feb 11 18:54:14 h57078 named[6990]: exiting (due to fatal error)

Da drinn sehe ich das er im Verzeichnis /srv/www/htdocs/confixx/html/dns/bind/ irgendne datei sucht.
dts
Posts: 290
Joined: 2004-02-05 20:40
 

Re: Bind Konfiguration, finde den Fehler nicht

Post by dts »

Hallo,

Existiert das Verzeichnis, dass BIND sucht?
/srv/www/htdocs/confixx/html/dns/bind/

Unter welchen Benutzerrechten läuft BIND?
Sind die Rechte von obigen Verzeichnis gleich denen von BIND?

Lg
Jürgen
talknet
Posts: 17
Joined: 2004-05-19 12:39
Location: Kamp-Lintfort
Contact:
 

Re: Bind Konfiguration, finde den Fehler nicht

Post by talknet »

Ja, das existiert. Jedoch fällt mir grade auf, dass BIND in einer Chroot Umgebung gestartet wird. Kann es das sein?
dts
Posts: 290
Joined: 2004-02-05 20:40
 

Re: Bind Konfiguration, finde den Fehler nicht

Post by dts »

Hi,

Klar, wenn er chrooted läuft, muss das Verzeichnis, wo er hinschreiben soll auch entsprechende Rechte haben...

Lg
Jürgen
wgot
Posts: 1675
Joined: 2003-07-06 02:03
 

Re: Bind Konfiguration, finde den Fehler nicht

Post by wgot »

Hallo,
DtS wrote:Hi,

Klar, wenn er chrooted läuft, muss das Verzeichnis, wo er hinschreiben soll auch entsprechende Rechte haben...
und es muß vorhanden sein. :roll:

/var/lib/named/ ist sein Rootverzeichnis, darin sucht er /srv/www/htdocs/confixx/html/dns/bind/, absolut gesehen also
/var/lib/named/srv/www/htdocs/confixx/html/dns/bind/

Verzeichnis anlegen und im Startscript die erforderlichen Dateien dorthin kopieren.

Gruß, Wolfgang
Post Reply