Add option to disable default zone inclusion
By setting bind::include_default_zones to false, a user can suppress the inclusion of the default definitions for the root hints zone and RFC 1912 zones. These are supplied with the BIND package's default configuration on both Debian and RedHat derived systems. These zones are necessary for a resolver, but may be omitted if the server acts strictly as an authoritative server.
This commit is contained in:
+2
-2
@@ -7,8 +7,8 @@ class bind (
|
||||
$rndc = undef,
|
||||
$statistics_port = undef,
|
||||
$auth_nxdomain = false,
|
||||
$include_local = false,
|
||||
$include_default_zones = true,
|
||||
$include_local = false,
|
||||
) inherits bind::defaults {
|
||||
|
||||
File {
|
||||
@@ -62,7 +62,7 @@ class bind (
|
||||
content => template('bind/named.conf.erb'),
|
||||
}
|
||||
|
||||
if $default_zones_source {
|
||||
if $include_default_zones and $default_zones_source {
|
||||
file { $default_zones_include:
|
||||
source => $default_zones_source,
|
||||
}
|
||||
|
||||
@@ -13,6 +13,7 @@ define bind::view (
|
||||
) {
|
||||
$confdir = $::bind::confdir
|
||||
$default_zones_include = $::bind::default_zones_include
|
||||
$include_default_zones = $::bind::include_default_zones
|
||||
|
||||
concat::fragment { "bind-view-${name}":
|
||||
order => $order,
|
||||
|
||||
Reference in New Issue
Block a user