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:
parent
91c883cfd9
commit
44b4b45761
@ -7,8 +7,8 @@ class bind (
|
|||||||
$rndc = undef,
|
$rndc = undef,
|
||||||
$statistics_port = undef,
|
$statistics_port = undef,
|
||||||
$auth_nxdomain = false,
|
$auth_nxdomain = false,
|
||||||
$include_local = false,
|
|
||||||
$include_default_zones = true,
|
$include_default_zones = true,
|
||||||
|
$include_local = false,
|
||||||
) inherits bind::defaults {
|
) inherits bind::defaults {
|
||||||
|
|
||||||
File {
|
File {
|
||||||
@ -62,7 +62,7 @@ class bind (
|
|||||||
content => template('bind/named.conf.erb'),
|
content => template('bind/named.conf.erb'),
|
||||||
}
|
}
|
||||||
|
|
||||||
if $default_zones_source {
|
if $include_default_zones and $default_zones_source {
|
||||||
file { $default_zones_include:
|
file { $default_zones_include:
|
||||||
source => $default_zones_source,
|
source => $default_zones_source,
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,6 +13,7 @@ define bind::view (
|
|||||||
) {
|
) {
|
||||||
$confdir = $::bind::confdir
|
$confdir = $::bind::confdir
|
||||||
$default_zones_include = $::bind::default_zones_include
|
$default_zones_include = $::bind::default_zones_include
|
||||||
|
$include_default_zones = $::bind::include_default_zones
|
||||||
|
|
||||||
concat::fragment { "bind-view-${name}":
|
concat::fragment { "bind-view-${name}":
|
||||||
order => $order,
|
order => $order,
|
||||||
|
|||||||
@ -44,7 +44,7 @@ view "<%= @name %>" {
|
|||||||
};
|
};
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
<%- if @default_zones_include -%>
|
<%- if @include_default_zones and @default_zones_include -%>
|
||||||
include "<%= @default_zones_include %>";
|
include "<%= @default_zones_include %>";
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user