Linuxhotel Wiki

Wie ging das nochmal?

Benutzer-Werkzeuge

Webseiten-Werkzeuge


lpi2:bind

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen gezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
lpi2:bind [2023/06/14 10:28]
ingo_wichmann [Konfigurationsdatei]
lpi2:bind [2024/04/17 12:38] (aktuell)
ingo_wichmann [Vorbereiten]
Zeile 10: Zeile 10:
 ''/​etc/​named.conf''​ : CentOS (ab 6) ''/​etc/​named.conf''​ : CentOS (ab 6)
  
-''/​etc/​bind/​named.conf.options''​ : Debian (ab 7)+''/​etc/​bind/​named.conf.options''​ : Debian (ab 12)
 <​file>​ <​file>​
 options { options {
Zeile 16: Zeile 16:
         // In der Praxis ist DNSSEC eine gute Sache ... aber zum Lernen erst mal aus:         // In der Praxis ist DNSSEC eine gute Sache ... aber zum Lernen erst mal aus:
         dnssec-enable no;         dnssec-enable no;
-        dnssec-validation no; 
-        dnssec-lookaside no; 
  
 } }
Zeile 77: Zeile 75:
 ; Aliase: ; Aliase:
 peter.linuxhotel.de. ​           IN CNAME notebook09.linuxhotel.de. peter.linuxhotel.de. ​           IN CNAME notebook09.linuxhotel.de.
-lothar.linuxhotel.de. ​          ​IN CNAME notebook05.linuxhotel.de. +lothar.linuxhotel.de. ​       ​60 ​IN CNAME notebook05.linuxhotel.de. 
-heribert.linuxhotel.de. ​        ​IN CNAME notebook06.linuxhotel.de.+heribert.linuxhotel.de. ​     ​30 ​IN CNAME notebook06.linuxhotel.de.
 bjoern.linuxhotel.de. ​          IN CNAME notebook20.linuxhotel.de. bjoern.linuxhotel.de. ​          IN CNAME notebook20.linuxhotel.de.
 admin.linuxhotel.de. ​           IN CNAME notebook22.linuxhotel.de. admin.linuxhotel.de. ​           IN CNAME notebook22.linuxhotel.de.
Zeile 131: Zeile 129:
 <​file>​ <​file>​
 $TTL 2h $TTL 2h
-IN SOA notebook20 root.notebook20 1999022301 1d 2h 5w 2d+@ SOA notebook20 root.notebook20 1999022301 1d 2h 5w 2d
  
 ; Nameserver: ; Nameserver:
-                 IN NS notebook20+                 NS notebook20
  
 ; kanonische IP-Adressen:​ ; kanonische IP-Adressen:​
-notebook22 ​      IN A 192.168.1.222 +notebook22 ​      A 192.168.1.222 
-notebook05 ​      IN A 192.168.1.205 +notebook05 ​      A 192.168.1.205 
-notebook20 ​      IN A 192.168.1.220 +notebook20 ​      A 192.168.1.220 
-notebook06 ​      IN A 192.168.1.206 +notebook06 ​      A 192.168.1.206 
-notebook09 ​      IN A 192.168.1.209+notebook09 ​      A 192.168.1.209
  
 ; Aliase: ; Aliase:
-peter            ​IN CNAME notebook09 +peter            CNAME notebook09 
-lothar ​          IN CNAME notebook05 +lothar ​          CNAME notebook05 
-heribert ​        IN CNAME notebook06 +heribert ​     ​60 ​CNAME notebook06 
-bjoern ​          IN CNAME notebook20 +bjoern ​       ​30 ​CNAME notebook20 
-admin            ​IN CNAME notebook22+admin            CNAME notebook22
 </​file>​ </​file>​
  
Zeile 385: Zeile 383:
         type secondary;         type secondary;
         file "​secondary/​linuxhotel.de";​         file "​secondary/​linuxhotel.de";​
-        ​masters ​{ 192.168.1.220;​ };+        ​primaries ​{ 192.168.1.220;​ };
 }; };
 zone "​1.168.192.in-addr.arpa"​ { zone "​1.168.192.in-addr.arpa"​ {
         type secondary;         type secondary;
         file "​secondary/​1.168.192.in-addr.arpa";​         file "​secondary/​1.168.192.in-addr.arpa";​
-        ​masters ​{ 192.168.1.220;​ };+        ​primaries ​{ 192.168.1.220;​ };
 }; };
 </​file>​ </​file>​
Zeile 396: Zeile 394:
 Zonendateien im Binärformat kann man mit: Zonendateien im Binärformat kann man mit:
   named-checkzone -D -f raw linuxhotel.de secondary/​linuxhotel.de   named-checkzone -D -f raw linuxhotel.de secondary/​linuxhotel.de
 +oder
 +  named-compilezone -f raw -F text -o - example.org. /​var/​cache/​bind/​secondary/​example.org
 anzeigen. Wenn man die Zonenfiles **lieber im Textformat statt im Binärformat** haben will, kann man in die Zone eintragen: anzeigen. Wenn man die Zonenfiles **lieber im Textformat statt im Binärformat** haben will, kann man in die Zone eintragen:
 <file txt> <file txt>
lpi2/bind.1686738500.txt.gz · Zuletzt geändert: 2023/06/14 10:28 von ingo_wichmann