bind9utils und bind-doc hilfreich Dies ist eine alte Version des Dokuments!
SuSE 10.0: bind bind-utils
Fedora 6 und CentOS 5: bind bind-utils caching-nameserver
Debian ab 3.1: bind9
1)
Das ist die Standard-Konfiguration, die Konfigurationsdatei muß nicht angepaßt werden.
service named start
Dauerhaft eintragen:
chkconfig named on
Wird bei der Installation gestartet
host www.whitehouse.gov 127.0.0.1
dig +trace www.wupperrafting.de.
rndc flush
bind beschränkt Abfragen seit Version 4.9.1 in der Voreinstellung wie folgt:
options {
...
allow-recursion { localnets; localhost; };
allow-query-cache { localnets; localhost; };
...
};
Sollen auch Rechner aus anderen Subnetzen auf diesen Nameserver zugreifen können, muss man diese Einschränkungen aufweichen. Z.B.:
acl "trusted" {
192.168.0.0/16;
10.153.154.0/24;
localhost;
localnets;
};
options {
...
allow-query { any; };
allow-recursion { trusted; };
allow-query-cache { trusted; };
...
};
Paket caching-nameserver deinstallieren
Paket system-config-bind installieren
Mit
system-config-bind
Default-Konfigurationsdateien erzeugen
/etc/named.conf : ( Fedora, CentOS )
/etc/bind/named.conf.options : ( Debian )
options {
forwarders { 192.168.1.6; 192.168.1.4; };
}
/etc/named.conf : ( SuSE 11.1 )
options {
include "/etc/named.d/forwarders.conf";
}
/etc/named.d/forwarders.conf : ( SuSE 11.1 )
forwarders { 192.168.1.6; 192.168.1.4; };
dnstop
Achtung: macht bind sehr langsam
rndc querylog rndc status | grep "query logging" tail /var/log/daemon.log
options {
querylog yes;
};
logging {
channel query_log {
file "/var/lib/bind/query.log" versions 10 size 50M;
print-time yes;
};
category queries {
query_log;
};
};
logging {
category lame-servers {
null;
};
};
bind9utils und bind-doc hilfreich