2019-03-07 17:21:38 +01:00
|
|
|
options {
|
2019-04-26 21:32:25 +02:00
|
|
|
// Working directory of bind
|
|
|
|
directory "/var/cache/bind";
|
2019-07-29 19:22:00 +02:00
|
|
|
key-directory "/etc/bind/keys" ;
|
2019-03-07 17:21:38 +01:00
|
|
|
|
2019-04-26 21:32:25 +02:00
|
|
|
// Some DNSSEC options
|
2019-03-07 17:21:38 +01:00
|
|
|
dnssec-validation auto;
|
|
|
|
auth-nxdomain no;
|
|
|
|
|
2019-04-26 21:32:25 +02:00
|
|
|
// Some security options
|
2019-03-07 17:21:38 +01:00
|
|
|
listen-on-v6 { any; };
|
|
|
|
version none;
|
|
|
|
hostname none;
|
|
|
|
server-id none;
|
|
|
|
|
2019-04-26 21:32:25 +02:00
|
|
|
// Disable recursion by default
|
|
|
|
recursion no;
|
2019-03-07 17:21:38 +01:00
|
|
|
|
2019-04-26 21:32:25 +02:00
|
|
|
// define queries options by default
|
|
|
|
allow-query { any; };
|
2019-03-07 17:21:38 +01:00
|
|
|
allow-query-cache { none; };
|
|
|
|
|
2019-04-26 21:32:25 +02:00
|
|
|
// Disable notify by default
|
|
|
|
notify no;
|
2019-03-07 17:21:38 +01:00
|
|
|
|
2019-04-26 21:32:25 +02:00
|
|
|
// Disable transfer by default
|
2019-03-07 17:21:38 +01:00
|
|
|
allow-transfer { none; };
|
|
|
|
|
2022-07-09 21:35:54 +02:00
|
|
|
// Set SOA serial to date format (YYYYMMDDNN) for dynamic zones
|
|
|
|
serial-update-method date;
|
|
|
|
|
|
|
|
};
|
|
|
|
logging {
|
|
|
|
channel "queries" {
|
|
|
|
file "/var/log/named/queries.log";
|
|
|
|
print-time yes;
|
|
|
|
print-category yes;
|
|
|
|
};
|
|
|
|
category queries { "queries"; };
|
|
|
|
};
|