Ales Komarek | e34ea0a | 2014-09-22 12:36:27 +0200 | [diff] [blame] | 1 | {%- from "bind/map.jinja" import server with context %} |
Ales Komarek | 882ac7b | 2014-07-14 10:47:56 +0200 | [diff] [blame] | 2 | options { |
Ales Komarek | e34ea0a | 2014-09-22 12:36:27 +0200 | [diff] [blame] | 3 | 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 Komarek | 882ac7b | 2014-07-14 10:47:56 +0200 | [diff] [blame] | 7 | |
Ales Komarek | e34ea0a | 2014-09-22 12:36:27 +0200 | [diff] [blame] | 8 | // 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 Komarek | 882ac7b | 2014-07-14 10:47:56 +0200 | [diff] [blame] | 12 | |
Ales Komarek | e34ea0a | 2014-09-22 12:36:27 +0200 | [diff] [blame] | 13 | // forwarders { |
| 14 | // 0.0.0.0; |
| 15 | // }; |
Ales Komarek | 882ac7b | 2014-07-14 10:47:56 +0200 | [diff] [blame] | 16 | |
Ales Komarek | e34ea0a | 2014-09-22 12:36:27 +0200 | [diff] [blame] | 17 | 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 Komarek | 2bf4332 | 2014-09-22 13:03:41 +0200 | [diff] [blame] | 21 | }; |
| 22 | |
| 23 | logging { |
| 24 | category default { default_syslog; default_debug; }; |
| 25 | category unmatched { null; }; |
| 26 | |
Ales Komarek | 3a6175f | 2014-09-22 13:26:41 +0200 | [diff] [blame^] | 27 | category queries { query.log; }; |
| 28 | channel query.log { |
| 29 | file "/var/named/query.log"; |
| 30 | print-time yes; |
| 31 | severity debug 3; |
| 32 | }; |
Ales Komarek | 2bf4332 | 2014-09-22 13:03:41 +0200 | [diff] [blame] | 33 | |
Ales Komarek | 3a6175f | 2014-09-22 13:26:41 +0200 | [diff] [blame^] | 34 | 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 | }; |