Hallo Leute,
ich eröffne mal wieder einen Thread zum leidigen Thema DNS.
Das Problem: Ich bekomme meine zwei DNS einfach nicht synchron.
Mein System ist ein VServer von Hosteurope, auf dem auch Bind läuft und durch ispCP verwaltet wird. Ein DNS von HE wird als SDNS genutzt.
Ich habe schon ein paar mal mit "rndc" die Zone Files auf den SDNS übertragen, dennoch melden mir alle Zone Checks im Netz, dass die Server inkonsistent sind. Vielleicht hat jemand von euch eine Idee?
Meine Domains sind:
mydomain.de (im Moment von denic noch auf meinen alten Server geleitet)
admin.myFQDN.de (panel)
Mit
Code:
dig @111.111.111.111 mydomain.de ANY
dig @80.237.128.10 mydomain.de ANY
konnte ich keine Unterschiede erkennen.
Ein
Code:
dig @80.237.128.10 admin.myFQDN.de ANY
- Also eine Abfrage für das Admin-Panel beim SNDS bei HE - gibt mir nur A.root-server.net-Blödsinn. Warum?
Laut grep named /var/log/syslog | tail -n 40 wurden die zone files transferiert:
Code:
zone mydomain.de/IN: sending notifies (serial 2010092500)
zone admin.myFQDN.de/IN: sending notifies (serial 2010092100)
Es kann sein, dass das Problem dadurch entstanden ist, dass ich beim Setup von ispCP keinen SDNS angegeben habe. Diesen habe ich erst im Nachhinein in die Config eingetragen und die Zone-File vom Panel angepasst.
Meine Panel Zone-File (/var/cache/bind/admin.myFQDN.de.db):
Code:
$TTL 12H
$ORIGIN admin.myFQDN.de.
@ IN SOA ns1.admin.myFQDN.de. postmaster.admin.myFQDN.de. (
; dmn [admin.myFQDN.de] timestamp entry BEGIN.
2010092100 ; Serial
; dmn [admin.myFQDN.de] timestamp entry END.
8H ; Refresh
15M ; Retry
4W ; Expire
3H ; Minimum TTL
)
IN NS ns1.admin.myFQDN.de.
IN NS ns2.admin.myFQDN.de.
IN MX 10 mail.admin.myFQDN.de.
admin.myFQDN.de. IN A 111.111.111.111
www IN A 111.111.111.111
admin.myFQDN.de. IN TXT "v=spf1 a mx ip4:111.111.111.111 ip4:111.111.111.111 ~all"
localhost IN A 127.0.0.1
mail IN A 111.111.111.111
ns1 IN A 111.111.111.111
ns2 IN A 80.237.128.10
; CNAME for mail transfer
imap IN CNAME mail
pop IN CNAME mail
pop3 IN CNAME mail
relay IN CNAME mail
smtp IN CNAME mail
; CNAME for web transfer
ftp IN CNAME www
; sub [{SUB_NAME}] entry BEGIN.
; sub [{SUB_NAME}] entry END.
80.237.128.10 ist dabei mein SDNS von HE. Vorher stand dort meine Server IP. Diese habe ich dann ersetzt, damit es wie in den Zone-Files aussieht, die erstellt wurden, nachdem ich den SDNS in die Config eingetragen habe.
Zone-File von meiner im Moment einzig registrierten Domain mydomain.de (/var/cache/bind/mydomain.de.db):
Code:
$TTL 12H
$ORIGIN mydomain.de.
@ IN SOA ns1.mydomain.de. postmaster.mydomain.de. (
; dmn [mydomain.de] timestamp entry BEGIN.
2010092500 ; Serial
; dmn [mydomain.de] timestamp entry END.
8H ; Refresh
30M ; Retry
4W ; Expire
3H ; Minimum TTL
)
IN NS ns1.mydomain.de.
IN NS ns2.mydomain.de.
IN MX 10 mail.mydomain.de.
mydomain.de. IN A 111.111.111.111
www IN A 111.111.111.111
mydomain.de. IN TXT "v=spf1 a mx ip4:111.111.111.111 ip4:111.111.111.111 ~all"
localhost IN A 127.0.0.1
mail IN A 111.111.111.111
ns1 IN A 111.111.111.111
ns2 IN A 80.237.128.10
; CNAME for VHCS compatibility
;ns IN CNAME ns1
; CNAME for mail transfer
imap IN CNAME mail
pop IN CNAME mail
pop3 IN CNAME mail
relay IN CNAME mail
smtp IN CNAME mail
; CNAME for web transfer
ftp IN CNAME www
; sub [{SUB_NAME}] entry BEGIN.
; sub [{SUB_NAME}] entry END.
; dns [{MANUAL_DNS_ID}] entry BEGIN.
; dns [{MANUAL_DNS_ID}] entry END.
Meine named.conf:
Code:
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
// 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";
};
include "/etc/bind/named.conf.local";
// bind Data BEGIN.
// dmn [admin.myFQDN.de] cfg entry BEGIN.
zone "admin.myFQDN.de" {
type master;
file "/var/cache/bind/admin.myFQDN.de.db";
notify YES;
};
// dmn [admin.myFQDN.de] cfg entry END.
// dmn [mydomain.de] cfg entry BEGIN.
zone "mydomain.de" {
type master;
file "/var/cache/bind/mydomain.de.db";
notify YES;
allow-query {
any;
};
};
// dmn [mydomain.de] cfg entry END.
// dmn [{DMN_NAME}] cfg entry BEGIN.
// dmn [{DMN_NAME}] cfg entry END.
// bind Data END.
Ich schätze mein Fehler ist ziemlich dämlich oder ich habe etwas essenzielles falsch verstanden.
Vielleicht habt ihr eine Idee für mich?
Vielen Dank!
Lufti