str = ''
localinfo.keys.sort.each do |node|
if localinfo[node]['nagiosmaster']
- ldapall[node]['ipHostNumber'].each do |ip|
+ allnodeinfo[node]['ipHostNumber'].each do |ip|
str += "\t" + ip + "/32;\n"
end
end
directory "/var/cache/bind";
auth-nxdomain no; # conform to RFC1035
+<% if classes.include?("named::geodns") or %w{orff senfl}.include?(hostname) -%>
+ listen-on { ! 127.0.0.1; any; };
+ listen-on-v6 { ! ::1; any; };
+<% else -%>
listen-on-v6 { any; };
+<% end -%>
allow-transfer { none; };
allow-update { none; };
<%=
allowed='Nagios; '
- if classes.include?('named::secondary') or classes.include?('named::recursor')
+ if (classes.include?('named::authoritative') and not %w{orff senfl}.include?(hostname)) or classes.include?('named::recursor')
allowed += 'localnets; '
end
str
-%>
-<% if classes.include?('named::secondary') or classes.include?('named::geodns') -%>
+<% if classes.include?('named::authoritative') or classes.include?('named::geodns') -%>
dnssec-enable yes;
dnssec-validation yes;
<% end -%>