]> git.openstreetmap.org Git - chef.git/commitdiff
Allow local netblocks to access bind as well as known hosts
authorTom Hughes <tom@compton.nu>
Wed, 26 Jun 2019 17:58:27 +0000 (18:58 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 26 Jun 2019 17:58:27 +0000 (18:58 +0100)
cookbooks/bind/templates/default/named.options.erb

index f9cebbc10affb7e7c99fffa92e7de366e40b57c5..2ec4094dc8bb65d12e3b0924fff3af9c65872a24 100644 (file)
@@ -2,11 +2,17 @@
 
 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 -%>