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 | |
| 27 | channel query.log { |
| 28 | file "/var/log/query.log"; |
| 29 | // Set the severity to dynamic to see all the debug messages. |
| 30 | severity debug 3; |
| 31 | }; |
| 32 | |
| 33 | category queries { query.log; }; |
Ales Komarek | 882ac7b | 2014-07-14 10:47:56 +0200 | [diff] [blame] | 34 | }; |