X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/7b9ec4b60ee39614d1d083d7220e76b07d2b275f..7302041c3f2c05098816f4fd9e3e538811f25a4e:/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 a2bd23dbb..2ec4094dc 100644 --- a/cookbooks/bind/templates/default/named.options.erb +++ b/cookbooks/bind/templates/default/named.options.erb @@ -3,12 +3,18 @@ acl "osm" { 127.0.0.1/32; <% node.interfaces(:family => :inet).each do |interface| -%> - <%= interface[:network] %>/<%= interface[:prefix] %>; + <%= 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] %>; + <%= interface[:network] %>/<%= interface[:prefix] %>; +<% end -%> +<% @ipv6_clients.sort.each do |address| -%> + <%= address %>/128; <% end -%> };