]> git.openstreetmap.org Git - chef.git/blob - cookbooks/bind/templates/default/named.options.erb
Add PDUs to DHCP
[chef.git] / cookbooks / bind / templates / default / named.options.erb
1 # DO NOT EDIT - This file is being maintained by Chef
2
3 acl "osm" {
4         127.0.0.1/32;
5 <% node.interfaces(:family => :inet).each do |interface| -%>
6         <%= interface[:network] %>/<%= interface[:prefix] %>;
7 <% end -%>
8
9         ::1/128;
10 <% node.interfaces(:family => :inet6).each do |interface| -%>
11         <%= interface[:network] %>/<%= interface[:prefix] %>;
12 <% end -%>
13 };
14
15 options {
16         # Directory to use for any working files
17         directory "/var/cache/bind";
18
19 <% if node[:bind][:forwarders] -%>
20         # Forward any queries we can't answer
21         forwarders {
22 <% node[:bind][:forwarders].each do |forwarder| -%>
23                 <%= forwarder %>;
24 <% end -%>
25         };
26 <% end -%>
27
28         # Only allow queries from our machines
29         allow-query { osm; };
30
31         # Don't allow transfers
32         allow-transfer { none; };
33
34         # Listen on any IPv6 interfaces
35         listen-on-v6 { any; };
36 };
37