blob: 9c767ce07b4d4bd96828e0f5d473331acd54e862 [file] [log] [blame]
Ales Komareke34ea0a2014-09-22 12:36:27 +02001{%- from "bind/map.jinja" import server with context %}
Ales Komarek882ac7b2014-07-14 10:47:56 +02002options {
Ales Komareke34ea0a2014-09-22 12:36:27 +02003 directory "/var/cache/bind";
4 // If there is a firewall between you and nameservers you want
5 // to talk to, you may need to fix the firewall to allow multiple
6 // ports to talk. See http://www.kb.cert.org/vuls/id/800113
Ales Komarek882ac7b2014-07-14 10:47:56 +02007
Ales Komareke34ea0a2014-09-22 12:36:27 +02008 // If your ISP provided one or more IP addresses for stable
9 // nameservers, you probably want to use them as forwarders.
10 // Uncomment the following block, and insert the addresses replacing
11 // the all-0's placeholder.
Ales Komarek882ac7b2014-07-14 10:47:56 +020012
Ales Komareke34ea0a2014-09-22 12:36:27 +020013 // forwarders {
14 // 0.0.0.0;
15 // };
Ales Komarek882ac7b2014-07-14 10:47:56 +020016
Ales Komareke34ea0a2014-09-22 12:36:27 +020017 auth-nxdomain no; # conform to RFC1035
18 {%- if server.get('ipv6_enabled', 'False') %}
19 listen-on-v6 { {{ server.get('ipv6_listen', 'any') }}; };
20 {%- endif %}
Ales Komarek2bf43322014-09-22 13:03:41 +020021};
22
23logging {
24 category default { default_syslog; default_debug; };
25 category unmatched { null; };
26
Ales Komarek3a6175f2014-09-22 13:26:41 +020027 category queries { query.log; };
28 channel query.log {
29 file "/var/named/query.log";
30 print-time yes;
31 severity debug 3;
32 };
Ales Komarek2bf43322014-09-22 13:03:41 +020033
Ales Komarek3a6175f2014-09-22 13:26:41 +020034 category update { update_log; };
35 channel update_log {
36 file "/var/named/update.log" versions 2 size 20m;
37 print-time yes;
38 print-category yes;
39 print-severity yes;
40 severity info;
41 };
42};