ich habe ein Problem mit Bind9: Eine Abfrage von mydomain.tld wird nicht als authority gekennzeichnet, eine Abfrage von subdomain.mydomain.tld hingegen arbeitet einwandfrei.
Code: Alles auswählen
ns1:~# dig @ns1.mydomain.tld mydomain.tld any
; <<>> DiG 9.2.1 <<>> @ns1.mydomain.tld mydomain.tld any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 29806
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 4
;; QUESTION SECTION:
;mydomain.tld. IN ANY
;; ANSWER SECTION:
mydomain.tld. 86400 IN SOA ns1.mydomain.tld. hostmaster.mydomain.tld. 2002010101 28800 7200 604800 39600
mydomain.tld. 86400 IN NS ns2.mydomain.tld.
mydomain.tld. 86400 IN NS ns1.mydomain.tld.
mydomain.tld. 3600 IN A 81.169.154.116
mydomain.tld. 86400 IN MX 20 backup.mydomain.tld.
mydomain.tld. 86400 IN MX 10 mail.mydomain.tld.
;; ADDITIONAL SECTION:
ns1.mydomain.tld. 86400 IN A 81.169.154.116
ns2.mydomain.tld. 86400 IN A 83.151.27.175
mail.mydomain.tld. 86400 IN A 81.169.154.116
backup.mydomain.tld. 86400 IN A 83.151.27.175
;; Query time: 180 msec
;; SERVER: 81.169.154.116#53(ns1.mydomain.tld)
;; WHEN: Fri Mar 4 12:54:22 2005
;; MSG SIZE rcvd: 237
ns1:~# dig @ns1.mydomain.tld subdomain.mydomain.tld any
; <<>> DiG 9.2.1 <<>> @ns1.mydomain.tld subdomain.mydomain.tld any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40422
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;subdomain.mydomain.tld. IN ANY
;; ANSWER SECTION:
subdomain.mydomain.tld. 3600 IN A 81.169.154.116
;; AUTHORITY SECTION:
mydomain.tld. 86400 IN NS ns2.mydomain.tld.
mydomain.tld. 86400 IN NS ns1.mydomain.tld.
;; ADDITIONAL SECTION:
ns1.mydomain.tld. 86400 IN A 81.169.154.116
ns2.mydomain.tld. 86400 IN A 83.151.27.175
;; Query time: 69 msec
;; SERVER: 81.169.154.116#53(ns1.mydomain.tld)
;; WHEN: Fri Mar 4 13:03:55 2005
;; MSG SIZE rcvd: 124
Code: Alles auswählen
ns1:~# dig @ns2.mydomain.tld mydomain.tld any
; <<>> DiG 9.2.1 <<>> @mr8.de mydomain.tld any
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40073
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 2, ADDITIONAL: 4
;; QUESTION SECTION:
;mydomain.tld. IN ANY
;; ANSWER SECTION:
mydomain.tld. 86400 IN MX 10 mail.mydomain.tld.
mydomain.tld. 86400 IN MX 20 backup.mydomain.tld.
mydomain.tld. 3600 IN A 81.169.154.116
mydomain.tld. 86400 IN NS ns1.mydomain.tld.
mydomain.tld. 86400 IN NS ns2.mydomain.tld.
mydomain.tld. 86400 IN SOA ns1.mydomain.tld. hostmaster.mydomain.tld. 2002010101 28800 7200 604800 39600
;; AUTHORITY SECTION:
mydomain.tld. 86400 IN NS ns1.mydomain.tld.
mydomain.tld. 86400 IN NS ns2.mydomain.tld.
;; ADDITIONAL SECTION:
mail.mydomain.tld. 86400 IN A 81.169.154.116
backup.mydomain.tld. 86400 IN A 83.151.27.175
ns1.mydomain.tld. 86400 IN A 81.169.154.116
ns2.mydomain.tld. 86400 IN A 83.151.27.175
;; Query time: 12 msec
;; SERVER: 83.151.27.175#53(ns2.mydomain.tld)
;; WHEN: Fri Mar 4 13:55:18 2005
;; MSG SIZE rcvd: 265
named.conf
Code: Alles auswählen
options {
directory "/var/cache/bind";
auth-nxdomain no; # conform to RFC1035
};
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
// add entries for other zones below here
zone "mydomain.tld" {
type master;
file "/etc/bind/db.default";
};
Code: Alles auswählen
$TTL 86400
@ IN SOA ns1.mydomain.tld. hostmaster.mydomain.tld. (
2002010101 ; serial
8H ; refresh
2H ; retry
1W ; expiry
11h) ; minimum
IN NS ns1
IN NS ns2
@ 3600 IN A 81.169.154.116
IN MX 10 mail
IN MX 20 backup
mail IN A 81.169.154.116
backup IN A 83.151.27.175
ns1 IN A 81.169.154.116
ns2 IN A 83.151.27.175
* 3600 IN A 81.169.154.116
Wie kommt man diesem Effekt bei?