From 25f8509c303874a3c74e732e7ebf416b104552c6 Mon Sep 17 00:00:00 2001 From: JadesFire <22324246+JadesFire@users.noreply.github.com> Date: Tue, 23 Oct 2018 17:25:01 +0100 Subject: [PATCH 1/2] Update named.conf.erb Add new disable-empty-zone option to template --- templates/named.conf.erb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/templates/named.conf.erb b/templates/named.conf.erb index 39cd72b8c..36ce8b7e8 100644 --- a/templates/named.conf.erb +++ b/templates/named.conf.erb @@ -99,6 +99,12 @@ options { /* Path to ISC DLV key */ bindkeys-file "/etc/named.iscdlv.key"; + +<% if !@disable_empty_zone.empty? -%> +<% @disable_empty_zone.each do |emptyzone| -%> + disable-empty-zone "<%= emptyzone %>"; +<% end -%> +<% end -%> }; logging { From 4213f3815618ea17e7196924d5af6d716d2023ec Mon Sep 17 00:00:00 2001 From: JadesFire <22324246+JadesFire@users.noreply.github.com> Date: Tue, 23 Oct 2018 17:27:00 +0100 Subject: [PATCH 2/2] Update conf.pp Add disable empty zone array parameter. Default is empty. --- manifests/server/conf.pp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/manifests/server/conf.pp b/manifests/server/conf.pp index 7944be2ee..524e3b1b8 100644 --- a/manifests/server/conf.pp +++ b/manifests/server/conf.pp @@ -62,6 +62,8 @@ # and the value is an array of config lines. Default: empty # $includes: # Array of absolute paths to named.conf include files. Default: empty +# $disable_empty_zone: +# Array of zones for which empty zone responses are disabled. Default: empty # # Sample Usage : # bind::server::conf { '/etc/named.conf': @@ -120,6 +122,7 @@ $zones = {}, $keys = {}, $includes = [], + $disable_empty_zone = [], $views = {}, ) {