Bind9: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 23: Zeile 23:
 
= Erstellen einer eigenen Zone =
 
= Erstellen einer eigenen Zone =
  
== Forward ==
+
== Allgemeine Einstellungen ==
 +
 
 
*  '''vim /etc/bind/named.conf.options'''
 
*  '''vim /etc/bind/named.conf.options'''
  
Zeile 31: Zeile 32:
 
  };
 
  };
  
*  '''vim /etc/bind/named.conf.options'''
+
== Forward ==
 +
 
 +
*  '''vim /etc/bind/named.conf.local'''
 +
 
 +
zone "lab02.it" {
 +
        type master;
 +
        file "lab02.it";
 +
};
  
 
== Reverse ==
 
== Reverse ==
 +
 +
*  '''vim /etc/bind/named.conf.local'''
 +
 +
zone "20.0.10.in-addr.arpa" {
 +
        type master;
 +
        file "20.0.10.in-addr.arpa";
 +
};

Version vom 20. April 2023, 11:16 Uhr

Installation

Dienste mit überlappenden Ports ausschalten

  • Abschalten des Systemd Nameservices geschieht normalerweise bei der Installation von Bind9 automatisch
  • systemctl disable --now systemd-resolved

eigentliche Installation

  • apt install bind9

lokalen DNS Server befragen

  • vim /etc/resolv.conf
nameserver 127.0.0.1

Konfigurationsdateien

  • /etc/bind/named.conf: Hauptkonfigurationsdatei, die die anderen Konfigurationen zusammenbündelt
  • /etc/bind/named.conf.local: Konfiguration der lokalen Zonen
  • /etc/bind/named.conf.options: Konfiguration der Berechtigungen, etc. des Daemons
  • /var/cache/bind/zonendatei: Einträge der Verbindungen von IP-Adresse und Domain Namen

Erstellen einer eigenen Zone

Allgemeine Einstellungen

  • vim /etc/bind/named.conf.options
options {
        directory "/var/cache/bind";
        dnssec-validation no;
};

Forward

  • vim /etc/bind/named.conf.local
zone "lab02.it" {
        type master;
        file "lab02.it";
};

Reverse

  • vim /etc/bind/named.conf.local
zone "20.0.10.in-addr.arpa" {
        type master;
        file "20.0.10.in-addr.arpa";
};