# File managed by puppet (class profile::unbound), all changes will be lost

<% if not @forwarders.empty? -%>
forward-zone:
    name: "."
<% @forwarders.each do |forwarder| -%>
    forward-addr: <%= forwarder %>
<% end -%>
<% end -%>

<% @forward_zones.each do |zone, forwarders| -%>
forward-zone:
    name: "<%= zone %>"
<% forwarders.each do |forwarder| -%>
    forward-addr: <%= forwarder %>
<% end -%>
<% end -%>

# File managed by puppet (class profile::unbound), all changes will be lost

<% if not @forwarders.empty? -%>
forward-zone:
    name: "."
<% @forwarders.each do |forwarder| -%>
    forward-addr: <%= forwarder %>
<% end -%>
<% end -%>

<% @forward_zones.each do |zone, forwarders| -%>
forward-zone:
    name: "<%= zone %>"
<% forwarders.each do |forwarder| -%>
    forward-addr: <%= forwarder %>
<% end -%>
<% if zone.end_with?("in-addr.arpa.") -%>
server: local-zone: "<%= zone %>" nodefault
<% end -%>
<% end -%>

Allow unbound to forward requests to in-addr.arpa zones
Allow unbound to forward requests to in-addr.arpa zones
