bind9-config
This commit is contained in:
parent
76f553e873
commit
97803cc763
13
etc/bind/named.conf
Normal file
13
etc/bind/named.conf
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
// This is the primary configuration file for the BIND DNS server named.
|
||||||
|
//
|
||||||
|
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
|
||||||
|
// structure of BIND configuration files in Debian, *BEFORE* you customize
|
||||||
|
// this configuration file.
|
||||||
|
//
|
||||||
|
// If you are just adding zones, please do that in /etc/bind/named.conf.local
|
||||||
|
|
||||||
|
include "/etc/bind/named.conf.options";
|
||||||
|
//Logging ein oder aus
|
||||||
|
//include "/etc/bind/named.conf.logging";
|
||||||
|
include "/etc/bind/named.conf.local";
|
||||||
|
include "/etc/bind/named.conf.default-zones";
|
20
etc/bind/named.conf.logging
Normal file
20
etc/bind/named.conf.logging
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
|
||||||
|
// Anlegen des Logfiles
|
||||||
|
// touch /var/log/bind-queries.log
|
||||||
|
// chown bind. /var/log/bind-queries.log
|
||||||
|
|
||||||
|
logging {
|
||||||
|
// Alle DNS-Anfragen mitloggen
|
||||||
|
channel "all_queries" {
|
||||||
|
file "/var/log/bind-queries.log" versions 3 size 5m;
|
||||||
|
severity info;
|
||||||
|
print-time yes;
|
||||||
|
print-severity yes;
|
||||||
|
print-category yes;
|
||||||
|
};
|
||||||
|
|
||||||
|
category queries {
|
||||||
|
all_queries;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
42
etc/bind/named.conf.options
Normal file
42
etc/bind/named.conf.options
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
options {
|
||||||
|
directory "/var/cache/bind";
|
||||||
|
|
||||||
|
// If there is a firewall between you and nameservers you want
|
||||||
|
// to talk to, you may need to fix the firewall to allow multiple
|
||||||
|
// ports to talk. See http://www.kb.cert.org/vuls/id/800113
|
||||||
|
|
||||||
|
// If your ISP provided one or more IP addresses for stable
|
||||||
|
// nameservers, you probably want to use them as forwarders.
|
||||||
|
// Uncomment the following block, and insert the addresses replacing
|
||||||
|
// the all-0's placeholder.
|
||||||
|
|
||||||
|
// forwarders {
|
||||||
|
// 0.0.0.0;
|
||||||
|
// };
|
||||||
|
|
||||||
|
//========================================================================
|
||||||
|
// If BIND logs error messages about the root key being expired,
|
||||||
|
// you will need to update your keys. See https://www.isc.org/bind-keys
|
||||||
|
//========================================================================
|
||||||
|
|
||||||
|
forwarders {
|
||||||
|
10.83.252.11;
|
||||||
|
10.50.252.0;
|
||||||
|
// 8.8.8.8;
|
||||||
|
// 10.50.32.1;
|
||||||
|
// 10.50.32.2;
|
||||||
|
// 213.136.95.10;
|
||||||
|
// 213.136.95.10;
|
||||||
|
};
|
||||||
|
|
||||||
|
allow-query {
|
||||||
|
127.0.0.1/8;
|
||||||
|
10.0.0.0/8;
|
||||||
|
};
|
||||||
|
|
||||||
|
dnssec-validation auto;
|
||||||
|
|
||||||
|
auth-nxdomain no; # conform to RFC1035
|
||||||
|
listen-on-v6 { any; };
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user