X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/3cef4ee66b7354afd03f536e58187b559ca98659..96cf7117338439b2907dff04dc70832a62a181a5:/cookbooks/bind/templates/default/named.options.erb diff --git a/cookbooks/bind/templates/default/named.options.erb b/cookbooks/bind/templates/default/named.options.erb index 2ec4094dc..ac4f32303 100644 --- a/cookbooks/bind/templates/default/named.options.erb +++ b/cookbooks/bind/templates/default/named.options.erb @@ -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; };