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/03/09 23:25]
127.0.0.1 Externe Bearbeitung
lpi2:bind [2023/12/08 15:15] (aktuell)
Zeile 77: Zeile 77:
 ; 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 120: Zeile 120:
  
 === im Log prüfen, ob es Fehler gab === === im Log prüfen, ob es Fehler gab ===
-Debian (ab 10+Debian (ab 11
-  journalctl -eu bind9.service+  journalctl -eu named.service
  
 ==== testen ==== ==== testen ====
Zeile 131: Zeile 131:
 <​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 385:
         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 396:
 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.txt · Zuletzt geändert: 2023/12/08 15:15 (Externe Bearbeitung)