PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : DNS Server geht nicht



Sayonara
29.01.04, 19:01
Ich hab in meiner LAN einen Bind 9.2.2 DNS Server laufen. Er soll die lokale Domain sengstock.home verwalten. Dazu gehöhren auch MX Einträge und so weiter. Na ja, mit Webmin konfiguriert lief das Teil nicht 100%. Also wollte ich das mal von Hand machen. Doch jetzt geht garnichts mehr. :( Nach einem HowTo, an das ich mich gehalten habe, sollte eigentlich alles richtig sein,..is aber nicht. So sehen meine Konfigs bis jetzt aus.

/etc/bind/named.conf


options {
directory "/var/bind";

// uncomment the following lines to turn on DNS forwarding,
// and change the forwarind ip address(es) :
//forward first;
//forwarders {
// 123.123.123.123
// 123,123.123.123;
//};

listen-on-v6 { none; };

// to allow only specific hosts to use the DNS server:
//allow-query {
// 127.0.0.1;
//};

// if you have problems and are behind a firewall:
//query-source address * port 53;
pid-file "/var/run/named/named.pid";
multiple-cnames yes;
};

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

zone "localhost" IN {
type master;
file "pri/localhost.zone";
allow-update { none; };
notify no;
};

zone "127.in-addr.arpa" IN {
type master;
file "pri/127.zone";
allow-update { none; };
notify no;
};

zone "sengstock.home" {
type master;
file "/var/bind/sengstock.home.hosts";
};


/var/bind/sengstock.home.hosts


@ IN SOA ns.sengstock.home. dns.sengstock.home. (
2004012901
28800
7200
864000
86400 )

NS ns
MX 10 mail.sengstock.home.

ns A 192.168.0.254
mail A 192.168.0.254
xerxes A 192.168.0.2
admin A 192.168.0.3
js A 192.168.0.4
shodan A 192.168.0.254


nslookup -type=SOA sengstock.home gibt folgendes zurück

Note: nslookup is deprecated and may be removed from future releases.
Consider using the `dig' or `host' programs instead. Run nslookup with
the `-sil[ent]' option to prevent this message from appearing.
Server: 192.168.0.254
Address: 192.168.0.254#53

** server can't find sengstock.home: SERVFAIL

Sayonara
30.01.04, 07:04
Ich weiß zwar nicht, was es war, aber ich hab einfach alles mit Tab schön eingerückt, Leerzeilen mit einem ";" gefüllt und Kommentare mit reingebracht wie "Serials, TTL,..etc". Jetzt funktioniert es plötzlich. :D
Hab dann noch die Reverse-Zone eingerichtet und die Konfiguration vervollständigt und alles läuft bestens. :)