====== Bind9 ====== [[https://wiki.ubuntuusers.de/DNS-Server_Bind/|Tutorial Einrichtung]] [[https://bind9.net/manuals|Referenz]], [[http://www.zytrax.com/books/dns/ch7/xfer.html|Bind9 Zone-Updates and Transfers]] ===== Bind9 als Slave einrichten ===== ==== Quellserver ==== /etc/bind/named.conf.local zone "contoso.com" { type master; file "/etc/named/db.contoso.com"; notify yes; also-notify { a.b.c.d; }; allow-transfer { a.b.c.d; }; }; a.b.c.d ist die Ziel-IP des Slave-DNS ==== Zielserver ==== /etc/bind/named.conf.local zone "contoso.com" { type slave; masters { a.b.c.d; }; file "/var/lib/bind/db.contoso.com"; }; a.b.c.d ist die IP des Master-DNS Zusätzlich muss die Firewall passend freigeschaltet sein, falls aktiv ((gilt nur bis zum nächsten Neustart und muss für Dauerhaftigkeit in einem Startscript wie z.B. rc.local eingebunden werden)): iptables -A INPUT -p tcp --dport 53 -j ACCEPT ==== Zone aktualisieren ==== rndc reload contoso.com Damit die Zone erfolgreich aktualisiert wird, muss in der Zonendatei zuvor die Seriennummer erhöht werden. [[https://www.andrewzammit.com/blog/reload-dns-zone-with-bind9-and-rndc/|Quelle]] {{tag>[Linux Bind9 Bind Master Slave DNS Zone Zonetransfer]}}