From: Peter Palfrader Date: Sat, 30 Apr 2011 16:24:31 +0000 (+0200) Subject: Make bind listen only on !localhost X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=53426b9c1ca14d5f0f2a8216fc6d01d080bdb329;p=mirror%2Fdsa-puppet.git Make bind listen only on !localhost --- diff --git a/modules/named/templates/named.conf.options.erb b/modules/named/templates/named.conf.options.erb index b3d6a1f1b..aa9be9b13 100644 --- a/modules/named/templates/named.conf.options.erb +++ b/modules/named/templates/named.conf.options.erb @@ -20,7 +20,7 @@ options { directory "/var/cache/bind"; auth-nxdomain no; # conform to RFC1035 -<% if classes.include?("named::geodns") or %w{orff senfl}.include?(hostname) -%> +<% if classes.include?("named::geodns") or %w{diamond orff senfl}.include?(hostname) -%> listen-on { ! 127.0.0.1; any; }; listen-on-v6 { ! ::1; any; }; <% else -%> @@ -35,7 +35,7 @@ options { <%= allowed='Nagios; ' - if (classes.include?('named::authoritative') and not %w{orff senfl}.include?(hostname)) or classes.include?('named::recursor') + if (classes.include?('named::authoritative') and not %w{diamond orff senfl}.include?(hostname)) or classes.include?('named::recursor') allowed += 'localnets; ' end