ich habe zu einem bestehenden Master-DNS-Server (Debian 12) einen Slave-DNS-Server (Debian 12) aufgesetzt.
named.conf.local (Slave):
Code: Alles auswählen
zone "84.55.192.in-addr.arpa" {
type slave; //Secondary Slave DNS
file "db.192.55.84";
masters {
192.168.1.84; //Master Server IP
};
};
zone "24.109.192.in-addr.arpa" {
type slave; //Secondary Slave DNS
file "db.192.109.24";
masters {
192.168.1.84; //Master Server IP
};
};
//Forward Zone Cache files
zone "haug.eu" {
type slave; //Secondary Slave DNS
file "eu/db.haug.eu.txt";
masters {
192.168.1.84; //Master Server IP
};
};
...
Code: Alles auswählen
zone "24.109.192.in-addr.arpa" {
type master;
file "/var/lib/bind/db.192.109.24";
allow-transfer {
127.0.0.1; # localhost
192.55.84.85; //Allow Transfer of zone from the master server
zone-xfer-allowed-by-ip;
};
also-notify { 192.55.84.85; }; //Notify slave for zone changes;
};
zone "84.55.192.in-addr.arpa" {
type master;
file "/var/lib/bind/db.192.55.84";
allow-transfer {
127.0.0.1; # localhost
192.55.84.85; //Allow Transfer of zone from the master server
zone-xfer-allowed-by-ip;
};
also-notify { 192.55.84.85; }; //Notify slave for zone changes;
};
## On the Forward zones
zone "germany.com" {
type master;
file "com/db.germany.com.txt";
allow-transfer {
127.0.0.1; # localhost
192.55.84.85; //Allow Transfer of zone from the master server
zone-xfer-allowed-by-ip;
};
also-notify { 192.55.84.85; }; //Notify slave for zone changes;
};
zone "haug.eu" {
type master;
file "eu/db.haug.eu.txt";
allow-transfer {
127.0.0.1; # localhost
192.55.84.85; //Allow Transfer of zone from the master server
zone-xfer-allowed-by-ip;
};
also-notify { 192.55.84.85; }; //Notify slave for zone changes;
};
Auf dem Master dieser Dig-Befehl führt zu
Code: Alles auswählen
dig +noall +answer +onesoa +multiline @192.168.1.84 192.168.1.85 axfr
; Transfer failed.
Code: Alles auswählen
rndc retransfer haug.eu
Code: Alles auswählen
15-Feb-2024 19:04:10.831 queries: info: client @0x7f3e7f698568 216.218.133.2#17655 (haug.eu): query: haug.eu IN SOA -E(0)D (192.55.84.85)
15-Feb-2024 19:05:29.825 general: info: received control channel command 'retransfer haug.eu'
15-Feb-2024 19:05:29.825 xfer-in: info: zone haug.eu/IN: Transfer started.
15-Feb-2024 19:05:29.829 xfer-in: info: transfer of 'haug.eu/IN' from 192.168.1.84#53: connected using 192.168.1.84#53
15-Feb-2024 19:05:29.829 xfer-in: info: zone haug.eu/IN: transferred serial 2024021501
15-Feb-2024 19:05:29.829 xfer-in: info: transfer of 'haug.eu/IN' from 192.168.1.84#53: Transfer status: success
15-Feb-2024 19:05:29.829 xfer-in: info: transfer of 'haug.eu/IN' from 192.168.1.84#53: Transfer completed: 1 messages, 13 records, 757 bytes, 0.001 secs (757000 bytes/sec) (serial 2024021501)
15-Feb-2024 19:05:29.829 notify: info: zone haug.eu/IN: sending notifies (serial 2024021501)
15-Feb-2024 19:05:45.438 queries: info: client @0x7f3e783f5b68 216.218.133.2#11613 (haug.eu): query: haug.eu IN SOA -E(0)D (192.55.84.85)
Jetzt fehlen mir weitere Ansätze, wo das Problem liegen könnte.
Viele Grüße
Saxenpower