lpi2:bind_caching_only
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.
| Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung | ||
| lpi2:bind_caching_only [2014/02/14 15:48] – ingo_wichmann | lpi2:bind_caching_only [2021/12/01 09:59] (aktuell) – [dauerhaft] ingo_wichmann | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ====== Benötigte Pakete ====== | ====== Benötigte Pakete ====== | ||
| - | SuSE 10.0: | + | openSuSE 15.0: |
| - | bind bind-utils | + | |
| - | Fedora | + | Fedora |
| - | | + | |
| - | Debian ab 3.1: | + | Debian ab 3.1: '' |
| - | | + | (( zusätzlich ist '' |
| ====== bind als caching only resolver ====== | ====== bind als caching only resolver ====== | ||
| Das ist die Standard-Konfiguration, | Das ist die Standard-Konfiguration, | ||
| - | ==== Zugriffsbeschränkung ==== | + | ===== Dienst starten ===== |
| - | bind beschränkt Abfragen seit Version | + | === SuSE und RedHat === |
| + | service named start | ||
| + | |||
| + | Dauerhaft eintragen: | ||
| + | chkconfig named on | ||
| + | |||
| + | === Debian === | ||
| + | Wird bei der Installation gestartet | ||
| + | |||
| + | ===== testen ===== | ||
| + | host www.whitehouse.gov 127.0.0.1 | ||
| + | |||
| + | ===== Rekursive Anfrage ===== | ||
| + | dig +trace www.wupperrafting.de. | ||
| + | |||
| + | ===== cache leeren ===== | ||
| + | rndc flush | ||
| + | |||
| + | ===== Zugriffsbeschränkung | ||
| + | bind beschränkt Abfragen seit Version 9.4.1 in der Voreinstellung wie folgt: | ||
| < | < | ||
| options { | options { | ||
| Zeile 39: | Zeile 56: | ||
| }; | }; | ||
| </ | </ | ||
| - | |||
| - | ==== Dienst starten ==== | ||
| - | SuSE und RedHat: | ||
| - | / | ||
| - | |||
| - | Dauerhaft eintragen bei SuSE und RedHat: | ||
| - | chkconfig named on | ||
| - | |||
| - | Debian: | ||
| - | / | ||
| - | |||
| - | ===== testen ===== | ||
| - | host www.whitehouse.gov 127.0.0.1 | ||
| - | |||
| - | ===== cache leeren ===== | ||
| - | rndc flush | ||
| ====== bind als caching only forwarder ====== | ====== bind als caching only forwarder ====== | ||
| Zeile 72: | Zeile 73: | ||
| options { | options { | ||
| forwarders { 192.168.1.6; | forwarders { 192.168.1.6; | ||
| - | } | + | }; |
| </ | </ | ||
| Zeile 79: | Zeile 80: | ||
| options { | options { | ||
| include "/ | include "/ | ||
| - | } | + | }; |
| </ | </ | ||
| Zeile 87: | Zeile 88: | ||
| </ | </ | ||
| - | ====== | + | ====== |
| - | dnstop | + | |
| ===== querylogging ===== | ===== querylogging ===== | ||
| - | todo: nicht getestet | + | //Achtung: macht bind sehr langsam// |
| + | ==== temporär ==== | ||
| + | rndc querylog on | ||
| + | rndc status | grep "query logging" | ||
| + | tail / | ||
| - | Achtung: macht bind sehr langsam | + | rndc querylog off |
| + | ==== dauerhaft ==== | ||
| + | === einfach === | ||
| + | < | ||
| + | options { | ||
| + | … | ||
| + | querylog yes; | ||
| + | … | ||
| + | }; | ||
| + | </ | ||
| + | |||
| + | === in separate Datei === | ||
| < | < | ||
| logging { | logging { | ||
| - | channel | + | channel |
| - | file "/var/named/ | + | file "/var/lib/bind/ |
| - | severity debug; | + | |
| print-time yes; | print-time yes; | ||
| - | enable querylogging | + | }; |
| + | category queries { | ||
| + | mein_query_log; | ||
| }; | }; | ||
| }; | }; | ||
| </ | </ | ||
| - | rndc querylog | + | == Doku == |
| - | | + | |
| - | tail /var/log/daemonlog | + | |
| - | ===== Rekursive Anfrage | + | ===== logging von " |
| - | | + | < |
| - | [[http://www.zonecut.net/ | + | logging { |
| + | | ||
| + | | ||
| + | }; | ||
| + | }; | ||
| + | </file> | ||
| + | ====== Fehlersuche ====== | ||
| + | dnstop | ||
lpi2/bind_caching_only.1392392935.txt.gz · Zuletzt geändert: 2014/02/14 15:48 von ingo_wichmann
