]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/bind/templates/default/named.options.erb
Simplify named configuration
[chef.git] / cookbooks / bind / templates / default / named.options.erb
index 2ec4094dc8bb65d12e3b0924fff3af9c65872a24..ac4f32303267938744df6076b0ca39179fc13e8e 100644 (file)
@@ -1,38 +1,11 @@
 # DO NOT EDIT - This file is being maintained by Chef
 
-acl "osm" {
-       127.0.0.1/32;
-<% node.interfaces(:family => :inet).each do |interface| -%>
-        <%= interface[:network] %>/<%= interface[:prefix] %>;
-<% end -%>
-<% @ipv4_clients.sort.each do |address| -%>
-       <%= address %>/32;
-<% end -%>
-
-       ::1/128;
-<% node.interfaces(:family => :inet6).each do |interface| -%>
-        <%= interface[:network] %>/<%= interface[:prefix] %>;
-<% end -%>
-<% @ipv6_clients.sort.each do |address| -%>
-       <%= address %>/128;
-<% end -%>
-};
-
 options {
         # Directory to use for any working files
        directory "/var/cache/bind";
 
-<% if node[:bind][:forwarders] -%>
-       # Forward any queries we can't answer
-       forwarders {
-<% node[:bind][:forwarders].each do |forwarder| -%>
-               <%= forwarder %>;
-<% end -%>
-       };
-<% end -%>
-
        # Only allow queries from our machines
-       allow-query { osm; };
+       allow-query { localnets; };
 
        # Don't allow transfers
        allow-transfer { none; };