• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

[gelöst]bind9.3.1 Servfail Problem

uLtrA

Newbie
Hi Leute,

ich wende mich nun verzweifelt an euch, nachdem alles googelei vergebens war.
Vorerst:
Ich habe mir nach folgendem Tutorial:

http://www.traum-projekt.com/forum/sitemap/t-33562.html

versucht einen DNS-Server zu basteln. Der 3 Rechner von mir so auflösen soll:
oslo107.homebase.lan (das ist der DNS-Server)
oslo106.homebase.lan
....etc

Also habe ich in der named.conf das angelegt.
Code:
zone "homebase.lan" in {
        type master;
        file "homebase.zone";
};


zone "2.168.192.in-addr.arpa" in {
        type master;
        file "192.168.2.zone";
};

und unter /var/lib/named/
die Datei:
homebase.zone
192.168.2.zone

Code:
$TTL 2D

2.168.192.in-addr.arpa. IN SOA oslo107.homebase.lan root.homebase.lan (

2003053001 ; serial
1D ; refresh
2H ; retry
1W ; expiry
2D ; minimum

IN NS oslo107.homebase.lan.

107 IN PTR oslo107.homebase.lan.
106 IN PTR oslo106.homebase.lan.
134 IN PTR toronto134.homebase.lan.

und

Code:
$TTL 2D

homebase.lan. IN SOA oslo107 root.homebase.lan. (

2003053001 ; serial
1D ; refresh
2H ; retry
1W ; expiry
2D ) ; minimum

        IN NS oslo107
        IN MX 10 oslo107

oslo107         IN A 192.168.2.107
oslo106         IN A 192.168.2.106
toronto134      IN A 192.168.2.134

Wenn ich nslookup mache kommt immer bei IP Eingabe
** server can't find 107.2.168.192.in-addr.arpa: SERVFAIL
Bei Name:
** server can't find oslo107.homebase.lan: SERVFAIL

Bei resolv.conf habe ich
domain homebase.lan
Nameserver 127.0.0.1 sogar eingetragen

Ich habe verzweifelt die LOG Datei gesucht, allerdings finde ich die nirgends, wo befindet die sich? Stand auch nichts darüber in der name.conf

Wäre super wenn ihr mir helfen könntet.
Vielleicht habe ich noch irgendwas übersehen?

gruß Jens
 
uLtrA schrieb:
Code:
$TTL 2D

2.168.192.in-addr.arpa. IN SOA oslo107.homebase.lan root.homebase.lan (

2003053001 ; serial
1D ; refresh
2H ; retry
1W ; expiry
2D ; minimum

IN NS oslo107.homebase.lan.

107 IN PTR oslo107.homebase.lan.
106 IN PTR oslo106.homebase.lan.
134 IN PTR toronto134.homebase.lan.

und

Code:
$TTL 2D

homebase.lan. IN SOA oslo107 root.homebase.lan. (

2003053001 ; serial
1D ; refresh
2H ; retry
1W ; expiry
2D ) ; minimum

        IN NS oslo107
        IN MX 10 oslo107

oslo107         IN A 192.168.2.107
oslo106         IN A 192.168.2.106
toronto134      IN A 192.168.2.134

oben:
Code:
@ IN SOA homebase.lan. root.homebase.lan.
unten:
Code:
@ IN SOA homebase.lan. root.homebase.lan.
und oben fehlt die geschlossene Klammer

die named.conf ist so auch noch nicht komplett...

Grüße
 
OP
U

uLtrA

Newbie
danke schonmal für die schnelle Antwort:
also ich hab die 2 Files nun so umgeschrieben wie in dem obersten Thread hier im Forum:

D.H.

/var/lib/named/homebase.zone
Code:
$TTL 2D

@       IN SOA homebase.lan. root.homebase.lan. (

2005082501 ; serial
3H ; refresh
1H ; retry
1W ; expiry
1D ) ; minimum


homebase.lan.   IN NS oslo107.homebase.lan.
localhost       IN A  127.0.0.1
oslo107         IN A  192.168.2.107
oslo106         IN A  192.168.2.106
toronto134      IN A  192.168.2.134

192.168.2.zone
Code:
$TTL 2D
@       IN SOA oslo107.homebase.lan. root.oslo107.homebase.lan. (


                        2005082501      ; serial
                        3H              ; refresh
                        1H              ; retry
                        1W              ; expiry
                        1D )            ; minimum

2.168.192.in-addr.arpa. IN NS   107.2.168.192.in-addr.arpa.

107     IN PTR  oslo107.homebase.lan.
106     IN PTR  oslo106.homebase.lan.
134     IN PTR  toronto134.homebase.lan.

Ich habe hier mal den Syntax so geändert wie du deine Quote gemacht hattest bei "unten".
Das mit der Klammer ist mir garnicht aufgefallen *schäm*

hmm die named.conf nochmal:
Code:
options {

        # The directory statement defines the name server's working directory

        directory "/var/lib/named";

        # Write dump and statistics file to the log subdirectory.  The
        # pathenames are relative to the chroot jail.

        dump-file "/var/log/named_dump.db";
        statistics-file "/var/log/named.stats";

        # The forwarders record contains a list of servers to which queries
        # should be forwarded.  Enable this line and modify the IP address to
        # your provider's name server.  Up to three servers may be listed.

        forwarders { 192.168.2.1; };

        # Enable the next entry to prefer usage of the name server declared in
        # the forwarders section.

        #forward first;

        # The listen-on record contains a list of local network interfaces to
        # listen on.  Optionally the port can be specified.  Default is to
        # listen on all interfaces found on your system.  The default port is
        # 53.

        #listen-on port 53 { 127.0.0.1; };

        # The listen-on-v6 record enables or disables listening on IPv6
        # interfaces.  Allowed values are 'any' and 'none' or a list of
        # addresses.

        listen-on-v6 { any; };

        # The next three statements may be needed if a firewall stands between
        # the local server and the internet.

        #query-source address * port 53;
        #transfer-source * port 53;
        # The allow-query record contains a list of networks or IP addresses
        # to accept and deny queries from. The default is to allow queries
        # from all hosts.

        #allow-query { 127.0.0.1; };

        # If notify is set to yes (default), notify messages are sent to other
        # name servers when the the zone data is changed.  Instead of setting
        # a global 'notify' statement in the 'options' section, a separate
        # 'notify' can be added to each zone definition.

        notify no;
};

# To configure named's logging remove the leading '#' characters of the
# following examples.
#logging {
#       # Log queries to a file limited to a size of 100 MB.
#       channel query_logging {
#               file "/var/log/named_querylog"
#                       versions 3 size 100M;
#               print-time yes;                 // timestamp log entries
#       };
#       category queries {
#               query_logging;
#       };
#
#       # Or log this kind alternatively to syslog.
#       channel syslog_queries {
#               syslog user;
#               severity info;
#       };
#       category queries { syslog_queries; };
#
#       # Log general name server errors to syslog.
#       channel syslog_errors {
#               syslog user;
#               severity error;
#       };
#       category default { syslog_errors;  };
#
#       # Don't log lame server messages.
#       category lame-servers { null; };
#};

zone "." in {
        type hint;
        file "root.hint";
};

zone "localhost" in {
        type master;
        file "localhost.zone";
};

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

zone "homebase.lan" in {
        type master;
        file "homebase.zone";
};


zone "2.168.192.in-addr.arpa" in {
        type master;
        file "192.168.2.zone";
};




# Include the meta include file generated by createNamedConfInclude.  This
# includes all files as configured in NAMED_CONF_INCLUDE_FILES from
# /etc/sysconfig/named

include "/etc/named.conf.include";

Ich weiß nicht was da noch fehlt, habe ihn keinem Tutorial mehr gesehen.

Der Fehler ist trotz der Änderung derselbe.

Aber danke schonmal!
 
Hey

Dein Reverse sollte so aussehen:

$TTL 2D
@ IN SOA oslo107.homebase.lan. root.oslo107.homebase.lan. (


2005082501 ; serial
3H ; refresh
1H ; retry
1W ; expiry
1D ) ; minimum

IN NS oslo107.homebase.lan.
107 IN PTR oslo107.homebase.lan.
106 IN PTR oslo106.homebase.lan.
134 IN PTR toronto134.homebase.lan.

Das log steht in der messages. (falls nicht anders angegeben)

By huflatisch
 
OP
U

uLtrA

Newbie
Danke

Ich hab das jetzt mal so abgeändert.
Aber ich habe trotzdem ein Dutzend Fehler wo ich keine Antworten zu finde.

meine Log
Oct 28 16:06:12 oslo107 named[5694]: starting BIND 9.3.1 -t /var/lib/named -u named
Oct 28 16:06:12 oslo107 named[5694]: found 1 CPU, using 1 worker thread
Oct 28 16:06:12 oslo107 named[5694]: loading configuration from '/etc/named.conf'
Oct 28 16:06:12 oslo107 named[5694]: listening on IPv6 interfaces, port 53
Oct 28 16:06:12 oslo107 named[5694]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 28 16:06:12 oslo107 named[5694]: listening on IPv4 interface eth0, 192.168.2.107#53
Oct 28 16:06:12 oslo107 named[5694]: command channel listening on 127.0.0.1#953
Oct 28 16:06:12 oslo107 named[5694]: command channel listening on ::1#953
Oct 28 16:06:12 oslo107 named[5694]: zone 0.0.127.in-addr.arpa/IN: loaded serial 42
Oct 28 16:06:12 oslo107 named[5694]: zone 2.168.192.in-addr.arpa/IN: has no NS records
Oct 28 16:06:12 oslo107 named[5694]: homebase.zone:25: unknown RR type 'homebase.lan'
Oct 28 16:06:12 oslo107 named[5694]: zone homebase.lan/IN: loading master file homebase.zone: unknown class/type
Oct 28 16:06:12 oslo107 named[5694]: zone localhost/IN: loaded serial 42


Ich versteh das nicht, wie kann ich soviel falsch machen in so einer kleinen File o0
Ich hab das so wie in den Tutorials beschrieben ausprobiert
 
OP
U

uLtrA

Newbie
Danke an alle

Es lag an beiden Dingen
- Einmal das Einrücken
- nochmal die Nennung des NS

Dann habe ich auch noch ein paar Sachen richtig eingerückt und nun läuft es, also nochmals vielen Dank.

Ich schreibe schonmal oben das Problem als gelöst hin.

Hätte aber noch eine kleine Frage, wie realisiere ich das mit einem Class B Netz
(Ich google dazu nochmal, aber wenn einer eine Antwort parat hat und Lust zu schreiben würde mich freuen)

gruß Jens
 
Oben