summaryrefslogtreecommitdiff
path: root/templates/zone-master.erb
blob: 2ec3973df85a2b28d2356c146fe93457122655e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File managed by puppet
zone "<%=name%>" IN {
  type master;
  file "/etc/bind/pri/<%=name%>.conf";
<% if zone_xfers and not zone_xfers.empty? -%>
  <% if zone_xfers.is_a?(Array) -%>
  allow-transfer { <%= zone_xfers.join('; ') -%>; };
  <% else -%>
  allow-transfer { <%= zone_xfers %>; };
  <% end -%>
<% else -%>
  allow-transfer { none; };
<% end -%>
  allow-query { any; };
  notify yes;
};