Benutzer-Werkzeuge

Webseiten-Werkzeuge


linux:bind9

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
linux:bind9 [2019/10/19 20:25] – angelegt ronnylinux:bind9 [2019/11/11 18:27] (aktuell) – [Zone aktualisieren] ronny
Zeile 1: Zeile 1:
 ====== Bind9 ====== ====== Bind9 ======
  
-[[https://wiki.ubuntuusers.de/DNS-Konfiguration/|Quelle]]+[[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]]
  
-{{tag>[Linux Bind9]}}+===== Bind9 als Slave einrichten ===== 
 + 
 +==== Quellserver ==== 
 + 
 +/etc/bind/named.conf.local 
 +<code> 
 +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; }; 
 +}; 
 +</code> 
 + 
 +a.b.c.d ist die Ziel-IP des Slave-DNS 
 + 
 +==== Zielserver ==== 
 + 
 +/etc/bind/named.conf.local 
 +<code> 
 +zone "contoso.com"
 +  type slave; 
 +  masters { a.b.c.d; }; 
 +  file "/var/lib/bind/db.contoso.com"; 
 +}; 
 +</code> 
 + 
 +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)): 
 + 
 +<code> 
 +iptables -A INPUT -p tcp --dport 53 -j ACCEPT 
 +</code> 
 + 
 +==== 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]}}
  
linux/bind9.1571509510.txt.gz · Zuletzt geändert: 2019/10/19 20:25 von ronny

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki