X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ab5751cdbec569aaf0eb0edbd0f88f45f31f1161..4f581378f4dfdd9cb5a357b6324985d1d53f9663:/cookbooks/bind/templates/default/named.options.erb?ds=sidebyside diff --git a/cookbooks/bind/templates/default/named.options.erb b/cookbooks/bind/templates/default/named.options.erb index f9cebbc10..2ec4094dc 100644 --- a/cookbooks/bind/templates/default/named.options.erb +++ b/cookbooks/bind/templates/default/named.options.erb @@ -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 -%>