DNS-Error

Bind, PowerDNS
chrisg
Posts: 58
Joined: 2003-11-24 09:16

DNS-Error

Post by chrisg » 2003-12-02 10:43

So, ich mach mal ein neues Thema auf.

Ich habe den Nameserver soweit eingerichtet, habe aber leider irgendwo einen Fehler. Vielleicht könnt Ihr die Konfigurationen mal überfliegen:

/etc/Named.conf

Code: Select all

options {

	directory "/var/named";

	#forwarders { 10.11.12.13; 10.11.12.14; };

	#forward first;

	#listen-on port 53 { 127.0.0.1; };

	listen-on-v6 { any; };

	#query-source address * port 53;
	#transfer-source * port 53;
	#notify-source * port 53;

	#allow-query { 127.0.0.1; };

	notify no;
	
	auth-nxdomain no;
	#erlaubt das zone-update zu ns.schlund.de und ns2.schlund.de
	allow-transfer { 195.20.224.97; 195.20.225.34; };
};

# The following three zone definitions don't need any modification.
# The first one defines localhost while the second defines the
# reverse lookup for localhost. The last zone "." is the 
# definition of the root name servers. 

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

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

[color=blue]zone "222.160.217.in.addr.arpa" in {
	type master;
	file "217.160.222.zone";
};[/color]

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

# You can insert further zone records for your own domains below.

zone "ho-media.de" {
type master;
file "default.hosts";
};

[color=red](letzes für alle Domains)[/color]
Die /var/named/217.160.222.zone hat folgende Angaben:

Code: Select all

$TTL 1W
@		IN SOA		ns.ho-media.de.   root.ho-media.de. (
				2002022501		; serial
				8H		; refresh
				2H		; retry
				1W		; expiry
				12H )		; minimum

		IN NS		ns
		IN NS		ns.schlund.de.
190		IN PTR		ho-media.de.
[color=red]Die letzte Zeile ist eine Leerzeile.[/color]
Die dafault.host im selben Verzeichnis:

Code: Select all

$TTL 1W
@		IN SOA	ns  hostmaster (

				2003063000
				8H
				2H
				1W
				12H
				
@		IN NS	ns
@		IN NS	ns.schlund.de.

@		IN A	217.160.222.190
*		IN A	217.160.222.190

@		IN MX	80 mx
*		IN MX	80 mx
[color=red]Auch hier ist die letzte Zeile eine Leerzeile.[/color]
Zu guter letzt die Ausgabe von dig @217.160.222.190 ho-handball.de:

Code: Select all

; <<>> DiG 9.1.3 <<>> @217.160.222.190 ho-handball.de
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 41858
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;ho-handball.de.                        IN      A

;; Query time: 2 msec
;; SERVER: 217.160.222.190#53(217.160.222.190)
;; WHEN: Tue Dec  2 10:40:28 2003
;; MSG SIZE  rcvd: 32
Wenn Ihr noch etwas braucht um mir zu sagen, wo der Fehler ist sagt es mir. :o) Ich hoffe Ihr könnt mir jetzt weiterhelfen ?!

dodolin
Posts: 3840
Joined: 2003-01-21 01:59
Location: Sinsheim/Karlsruhe

Re: DNS-Error

Post by dodolin » 2003-12-02 13:40

ho-handball.de ist nirgendwo in named.conf erwähnt.
Bei Status: SERVFAIL bitte auch immer die Logfiles kontrollieren bzw. hier posten.

chrisg
Posts: 58
Joined: 2003-11-24 09:16

Re: DNS-Error

Post by chrisg » 2003-12-02 14:17

In der Datei /etc/Named.conf sind alle Domains nach folgendem Muster aufgelistet:

zone "ho-media.de" {
type master;
file "default.hosts";
};

Das gilt auch für die ho-handball.de !

Jetzt zu den logs:

Die /var/logs/warn:

Code: Select all

Nov 29 16:28:57 p15145250 last message repeated 2 times
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_zone_load: zone 222.160.217.in.addr.arpa/IN: loading master file 217.160.222.zone: file not found
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_rdata_fromtext: default.hosts:8: near '@': extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_zone_load: zone cizzo.de/IN: loading master file default.hosts: extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_rdata_fromtext: default.hosts:8: near '@': extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_zone_load: zone clan-mor.de/IN: loading master file default.hosts: extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_rdata_fromtext: default.hosts:8: near '@': extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_zone_load: zone exprit.de/IN: loading master file default.hosts: extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_rdata_fromtext: default.hosts:8: near '@': extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_zone_load: zone handballreferee.de/IN: loading master file default.hosts: extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_rdata_fromtext: default.hosts:8: near '@': extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_zone_load: zone ho-handball.de/IN: loading master file default.hosts: extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_rdata_fromtext: default.hosts:8: near '@': extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_zone_load: zone ho-media.de/IN: loading master file default.hosts: extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_rdata_fromtext: default.hosts:8: near '@': extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_zone_load: zone hsg-weserbergland.de/IN: loading master file default.hosts: extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_rdata_fromtext: default.hosts:8: near '@': extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_zone_load: zone vfl-hessisch-oldendorf.de/IN: loading master file default.hosts: extra input text
und die messages:

Code: Select all

Nov 29 16:57:00 p15145250 /USR/SBIN/CRON[4492]: (root) CMD (/root/confixx/confixx_counterscript.pl) 
Nov 29 16:57:48 p15145250 /usr/sbin/named[4507]: starting BIND 9.1.3 -u named
Nov 29 16:57:48 p15145250 /usr/sbin/named[4507]: using 1 CPU
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: loading configuration from '/etc/named.conf'
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: no IPv6 interfaces found
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: listening on IPv4 interface lo, 127.0.0.1#53
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: listening on IPv4 interface eth0, 217.160.222.190#53
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_zone_load: zone 222.160.217.in.addr.arpa/IN: loading master file 217.160.222.zone: file not found
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_rdata_fromtext: default.hosts:8: near '@': extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_zone_load: zone cizzo.de/IN: loading master file default.hosts: extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_rdata_fromtext: default.hosts:8: near '@': extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_zone_load: zone clan-mor.de/IN: loading master file default.hosts: extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_rdata_fromtext: default.hosts:8: near '@': extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_zone_load: zone exprit.de/IN: loading master file default.hosts: extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_rdata_fromtext: default.hosts:8: near '@': extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_zone_load: zone handballreferee.de/IN: loading master file default.hosts: extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_rdata_fromtext: default.hosts:8: near '@': extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_zone_load: zone ho-handball.de/IN: loading master file default.hosts: extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_rdata_fromtext: default.hosts:8: near '@': extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_zone_load: zone ho-media.de/IN: loading master file default.hosts: extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_rdata_fromtext: default.hosts:8: near '@': extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_zone_load: zone hsg-weserbergland.de/IN: loading master file default.hosts: extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_rdata_fromtext: default.hosts:8: near '@': extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: dns_zone_load: zone vfl-hessisch-oldendorf.de/IN: loading master file default.hosts: extra input text
Nov 29 16:57:48 p15145250 /usr/sbin/named[4509]: running

dodolin
Posts: 3840
Joined: 2003-01-21 01:59
Location: Sinsheim/Karlsruhe

Re: DNS-Error

Post by dodolin » 2003-12-02 14:57

In der default.zone fehlen die Strichpunkte nach den TTL- und anderen Zeiten und die schließende Klammer. Gucke dir mal diverse Beispieldateien hier in der FAQ etc. an...

chrisg
Posts: 58
Joined: 2003-11-24 09:16

Re: DNS-Error

Post by chrisg » 2003-12-02 23:53

Hallo, ich habe die Datei bearbeitet und den nameserver neu gestartet.

Jetzt zeigt mir dig @217.160.222.190 ho-media.de folgendes an:

Code: Select all


; <<>> DiG 9.1.3 <<>> @217.160.222.190 ho-media.de
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27242
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1

;; QUESTION SECTION:
;ho-media.de.                   IN      A

;; ANSWER SECTION:
ho-media.de.            604800  IN      A       217.160.222.190

;; AUTHORITY SECTION:
ho-media.de.            604800  IN      NS      ns.schlund.de.
ho-media.de.            604800  IN      NS      ns.ho-media.de.

;; ADDITIONAL SECTION:
ns.ho-media.de.         604800  IN      A       217.160.222.190

;; Query time: 4 msec
;; SERVER: 217.160.222.190#53(217.160.222.190)
;; WHEN: Tue Dec  2 23:55:08 2003
;; MSG SIZE  rcvd: 103
Wie schonmal gesagt habe ich aber - obwohl es jetzt wohl geklappt hat - nicht so die Ahnung von Nameservern:

Kann mir nochmal jemand sagen, was ich als nächstes machen muss, wenn ich eine neue Domain hinzufügen möchte ?