bind
: Manages the BIND domain name server and DNS zones
bind::config
: Manages BIND configurationbind::install
: Manages BIND installationbind::service
: Manages BIND service
bind::key
: Create TSIG key for zone updates in the configuration file for BINDbind::zone
: A DNS zone
resource_record
: a DNS resource record type
bind::service_name
: Determines the name of the BIND service
Bind::Include
: Type definition for BIND'sinclude
statementBind::Logging
: Type definition for BIND'slogging
statementBind::Logging::Category
: Type definition for BIND'slogging
categoriesBind::Logging::CategoryPhrase
: Type definition for BIND'slogging
category
phraseBind::Logging::ChannelName
: Type definition for BIND'slogging
channel
namesBind::Logging::ChannelPhrase
: Type definition for BIND'slogging
channel
phraseBind::Options
: Type definition for BIND'soptions
statementBind::Size
: Type definition for BIND's file size specificationBind::ZoneConfig::UpdatePolicy
: Type definition for BIND'supdate-policy
clause in thezone
statementBind::ZoneConfig::UpdatePolicy::Rule
: Type definition for rules in BIND'supdate-policy
clause in thezone
statement
Manages the BIND domain name server and DNS zones
include bind
The following parameters are available in the bind
class:
authoritative
config_dir
default_options
default_zones
dev_packages
doc_packages
utils_packages
includes
dev_packages_ensure
doc_packages_ensure
utils_packages_ensure
logging
keys
options
package_manage
service_manage
package_backport
package_name
package_ensure
resolvconf_package_name
resolvconf_service_enable
root_hint_zone
service_config_file
service_enable
service_ensure
service_group
service_name
service_user
service_options
zones
zone_default_expire
zone_default_mname
zone_default_negative_caching_ttl
zone_default_refresh
zone_default_retry
zone_default_rname
zone_default_serial
zone_default_ttl
Data type: Boolean
Whether to enable features needed for authoritative server operation.
Default value: false
Data type: Stdlib::Absolutepath
Directory for BIND configuration files.
Default value: '/etc/bind'
Data type: Bind::Options
Default BIND
options loaded
from Hiera data in this module's data
directory. Merged with, and overridden by, the options
parameter. You'll generally want to use the options
parameter and leave default_options
alone.
Default value: { 'directory' => '/var/cache/bind', }
Data type: Boolean
Whether to include the default zones in the BIND configuration.
Default value: true
Data type: Array[String[1]]
List of BIND development packages.
Default value: ['bind9-dev']
Data type: Array[String[1]]
List of BIND documentation packages.
Default value: ['bind9-doc']
Data type: Array[String[1]]
List of BIND utilities packages.
Default value: ['bind9-dnsutils']
Data type: Optional[Variant[Array[Bind::Include], Bind::Include]]
Additional configuration files to include in the BIND configuration using the include statement.
Default value: undef
Data type: Optional[String[1]]
The ensure
value for the BIND development packages (libraries and header files).
Default value: undef
Data type: Optional[String[1]]
The ensure
value for the BIND documentation packages.
Default value: undef
Data type: String[1]
The ensure
value for the BIND utilities packages.
Default value: 'installed'
Data type: Optional[Bind::Logging]
Configuration of the logging statement.
Default value: undef
Data type: Hash
Hash for creating Bind::Key resources.
Default value: {}
Data type: Optional[Bind::Options]
Configuration of the options
statement.
Merged with, and overrides, the default_options
parameter.
Default value: undef
Data type: Boolean
Whether to have this module manage the BIND package.
Default value: true
Data type: Boolean
Whether to have this module manage the BIND service.
Default value: true
Data type: Boolean
Whether to install the BIND package from Debian backports.
Default value: false
Data type: String[1]
The name of the BIND package.
Default value: 'bind9'
Data type: String[1]
The ensure
parameter for the BIND package.
Default value: installed
Data type: String[1]
The name of the resolvconf package to use if resolvconf_service_enable
is true
.
Default value: 'openresolv'
Data type: Boolean
Whether to enable the named-resolvconf service so that localhost's BIND resolver is used in
/etc/resolv.conf
.
Default value: false
Data type: Boolean
Whether to include the root zone "." in the BIND configuration with type
hint
.
Default value: true
Data type: Stdlib::Absolutepath
The path to the BIND config file.
Default value: extlib::path_join([$config_dir, 'named.conf'])
Data type: Variant[Boolean, String[1]]
The enable
parameter for the BIND service.
Default value: true
Data type: Stdlib::Ensure::Service
The ensure
parameter for the BIND service.
Default value: running
Data type: String[1]
The primary group of $service_user
. Used for directory permissions.
Default value: $service_user
Data type: String[1]
The name of the BIND service.
Default value: 'named'
Data type: String[1]
The user to run BIND as (for the -u
command line option).
Default value: 'bind'
Data type: Optional[String[1]]
Command line options for the BIND service.
Default value: undef
Data type: Hash
Hash for creating Bind::Zone resources.
Default value: {}
Data type: String[1]
The default SOA expire time, set per a RIPE
recommendation (same as with all of the default
time values). Can be overridden by individual zones by providing a SOA record in the zone's hash
of the $zones
parameter. Reference: RFC
1035
Default value: '1000h'
Data type: String[1]
The default SOA MNAME. That is, the domain name of the primary name server for the zone. Can be
overridden by individual zones by providing a SOA record in the zone's hash of the $zones
parameter. Reference: RFC 1035
Default value: $facts['networking']['hostname']
Data type: String[1]
The default negative caching TTL, the last field of the SOA record. Can be overridden by
individual zones by providing a SOA record in the zone's hash of the $zones
parameter.
Reference: RFC 2308
Default value: '1h'
Data type: String[1]
The default SOA refresh time. Can be overridden by individual zones by providing a SOA record in
the zone's hash of the $zones
parameter. Reference: RFC
1035
Default value: '24h'
Data type: String[1]
The default SOA retry time. Can be overridden by individual zones by providing a SOA record in
the zone's hash of the $zones
parameter. Reference: RFC
1035
Default value: '2h'
Data type: String[1]
The default SOA RNAME. That is, the domain name-formatted email address of the person responsible
for the zone. Can be overridden by individual zones by providing a SOA record in the zone's hash
of the $zones
parameter. Reference: RFC
1035
Default value: 'hostmaster'
Data type: Integer[0]
The default initial serial number for the zone. Can be overridden by individual zones by
providing a SOA record in the zone's hash of the $zones
parameter.
Default value: 1
Data type: String[1]
The default zone-wide TTL. This value is used in the zone's $TTL
directive at the start of the
zone. Individual zones can override this default with the ttl
key in their configuration hashes
in the $zones
parameter. Also, individual resource records can override this value with the
ttl
key in their hashes. Reference: RFC 2308
Default value: '2d'
Create TSIG key for zone updates in the configuration file for BIND
bind::key { 'tsig-client':
algorithm => 'hmac-sha512',
secret => 'secret-key-data',
}
The following parameters are available in the bind::key
defined type:
Data type: Enum['hmac-sha256', 'hmac-sha384', 'hmac-sha512']
Defines the algorithm which was used to generate the key data. For security reasons just allow algorithms hmac-sha256 and above: https://www.rfc-editor.org/rfc/rfc8945.html#name-algorithms-and-identifiers
Data type: String[44]
Provide the secret data of the TSIG key, generated using tsig-keygen.
A DNS zone
bind::zone { 'example.com.': }
The following parameters are available in the bind::zone
defined type:
zone_name
allow_transfer
allow_update
also_notify
auto_dnssec
class
file
forward
forwarders
in_view
inline_signing
key_directory
manage
masters
primaries
purge
resource_records
serial_update_method
ttl
type
update_policy
Data type: Pattern[/\.$/]
The name of the zone.
Default value: $title
Data type: Optional[Array[Variant[Stdlib::Host, Stdlib::IP::Address]]]
Which hosts are allowed to receive zone transfers from the server. https://bind9.readthedocs.io/en/latest/reference.html#allow-transfer-access
Default value: undef
Data type: Optional[Array[Variant[Stdlib::Host, Stdlib::IP::Address]]]
Which hosts are allowed to submit Dynamic DNS updates to the zone.
Default value: undef
Data type: Optional[Array[Variant[Stdlib::Host, Stdlib::IP::Address]]]
list of IP addresses of name servers that are also sent NOTIFY messages whenever a fresh copy of the zone is loaded, in addition to the servers listed in the zone’s NS records.
Default value: undef
Data type: Optional[Enum['allow', 'maintain', 'off']]
The automatic DNSSEC key management mode.
Default value: undef
Data type: Optional[Enum['IN', 'HS', 'hesiod', 'CHAOS']]
DNS class. Defaults to 'IN', for Internet. https://bind9.readthedocs.io/en/latest/reference.html#class
Default value: undef
Data type: Optional[String[1]]
The zone's filename.
Default value: undef
Data type: Optional[Enum['first', 'only']]
This option is only meaningful if the zone has a forwarders list. The 'only' value causes the lookup to fail after trying the forwarders and getting no answer, while 'first' allows a normal lookup to be tried. https://bind9.readthedocs.io/en/latest/reference.html#forwarding
Default value: undef
Data type: Optional[Array[Stdlib::Host]]
Hosts to which queries are forwarded. https://bind9.readthedocs.io/en/latest/reference.html#forwarding
Default value: undef
Data type: Optional[String[1]]
Allows for referencing the zone in another view.
Default value: undef
Data type: Optional[Variant[Boolean, Stdlib::Yes_no]]
Allows BIND to automatically sign zones.
Default value: undef
Data type: Optional[String[1]]
The directory where the public and private DNSSEC key files should be found when performing a dynamic update of secure zones, if different than the current working directory.
Default value: undef
Data type: Boolean
Whether to manage the contents of this zone with Puppet. If false, only manages the configuration of the zone in named.conf. If true, creates and manages the zone file and resource records of the zone.
Default value: false
Data type: Optional[Array[Stdlib::Host]]
Synonym for primaries
.
Default value: undef
Data type: Optional[Array[Stdlib::Host]]
Defines a named list of servers for inclusion in stub and secondary zones' primaries or also-notify lists.
Default value: undef
Data type: Boolean
Whether to purge unmanaged resource records from the zone.
Default value: false
Data type: Hash
Hash for creating resource_record
resources.
Default value: {}
Data type: Optional[Enum['date', 'increment', 'unixtime']]
Method for incrementing the zone's serial number.
Default value: undef
Data type: Optional[String[1]]
The value for the $TTL
directive, which sets the default resource record TTL for the
zone.
Default value: undef
Data type: Optional[Enum[ 'primary', 'master', 'secondary', 'slave', 'mirror', 'hint', 'stub', 'static-stub', 'forward', 'redirect', 'delegation-only', ]]
The zone type. https://bind9.readthedocs.io/en/latest/reference.html#zone-types
Default value: undef
Data type: Optional[Array[Bind::ZoneConfig::UpdatePolicy]]
The update-policy. https://bind9.readthedocs.io/en/latest/reference.html#dynamic-update-policies
Default value: undef
This type provides Puppet with the capabilities to manage DNS resource records.
Autorequires: If Puppet is managing the zone that this resource record belongs to, the resource record will autorequire the zone.
resource_record { 'foo.example.com.':
ensure => 'present',
type => 'AAAA',
data => '2001:db8::1',
}
The following properties are available in the resource_record
type.
Data type: String
The data for the resource record.
Data type: Enum[present, absent]
Whether this resource record should be present or absent on the target system.
Default value: present
Data type: String
The name of the resource record, also known as the owner or label.
Data type: Optional[String]
The TTL for the resource record.
Data type: String
The type of the resource record.
Data type: String
The zone the resource record belongs to.
Reference: https://bind9.readthedocs.io/en/latest/reference.html#include-statement-grammar
Alias of
Stdlib::Absolutepath
Reference: https://bind9.readthedocs.io/en/latest/reference.html#logging-statement-grammar
Alias of
Struct[{
Optional['channels'] => Hash[Bind::Logging::ChannelName, Bind::Logging::ChannelPhrase],
Optional['categories'] => Hash[Bind::Logging::Category, Bind::Logging::CategoryPhrase],
}]
Reference: https://bind9.readthedocs.io/en/latest/reference.html#the-category-phrase
Alias of
Enum['client', 'cname', 'config', 'database', 'default', 'delegation-only', 'dispatch', 'dnssec', 'dnstap', 'edns-disabled', 'general', 'lame-servers', 'network', 'notify', 'nsid', 'queries', 'query-errors', 'rate-limit', 'resolver', 'rpz', 'rpz-passthru', 'security', 'serve-stale', 'spill', 'trust-anchor-telemetry', 'unmatched', 'update', 'update-security', 'xfer-in', 'xfer-out', 'zoneload']
Reference: https://bind9.readthedocs.io/en/latest/reference.html#the-category-phrase
Alias of
Struct[{
Optional['channels'] => Array[String[1]],
}]
Reference: https://bind9.readthedocs.io/en/latest/reference.html#the-channel-phrase
Alias of
Pattern[/\A\w+\Z/]
Reference: https://bind9.readthedocs.io/en/latest/reference.html#the-channel-phrase
Alias of
Variant[Enum['null', 'stderr', 'syslog'], Struct[{
Optional['buffered'] => Boolean,
Optional['file'] => Struct[{
'name' => String[1],
Optional['versions'] => Variant[Enum['unlimited'], Integer[1]],
Optional['size'] => Bind::Size,
Optional['suffix'] => Enum['increment', 'timestamp'],
}],
Optional['print-category'] => Boolean,
Optional['print-severity'] => Boolean,
Optional['print-time'] => Variant[Boolean, Stdlib::Yes_no, Enum['iso8601', 'iso8601-utc', 'local']],
Optional['severity'] => String[1],
Optional['syslog'] => Stdlib::Syslogfacility,
}]]
Reference: https://bind9.readthedocs.io/en/latest/reference.html#options-statement-grammar
Alias of
Struct[{
Optional['allow-transfer'] => Array[Variant[Stdlib::Host, Stdlib::IP::Address]],
Optional['allow-update'] => Array[Variant[Stdlib::Host, Stdlib::IP::Address]],
Optional['allow-query'] => Array[Variant[Stdlib::Host, Stdlib::IP::Address]],
Optional['also-notify'] => Array[Variant[Stdlib::Host, Stdlib::IP::Address]],
Optional['auto-dnssec'] => Enum['allow', 'maintain', 'off'],
Optional['directory'] => Stdlib::Absolutepath,
Optional['inline-signing'] => Variant[Boolean, Stdlib::Yes_no],
Optional['key-directory'] => String[1],
Optional['serial-update-method'] => Enum['date', 'increment', 'unixtime'],
Optional['zone-statistics'] => Variant[Boolean, Stdlib::Yes_no, Enum['full', 'terse', 'none']],
}]
Reference: size_spec
under https://bind9.readthedocs.io/en/latest/reference.html#configuration-file-elements
Alias of
Variant[Enum['unlimited', 'default'], Integer[0], Pattern[/\A\d+(?i:k|m|g)\Z/]]
Reference: https://bind9.readthedocs.io/en/latest/reference.html#dynamic-update-policies
Alias of
Variant[Enum['local'], Bind::ZoneConfig::UpdatePolicy::Rule]
Reference: https://bind9.readthedocs.io/en/latest/reference.html#dynamic-update-policies
Alias of
Struct[{
'permission' => Enum['deny', 'grant'],
'identity' => String[1],
'ruletype' => Enum[
'name',
'subdomain',
'zonesub',
'wildcard',
'self',
'selfsub',
'selfwild',
'ms-self',
'ms-selfsub',
'ms-subdomain',
'krb5-self',
'krb5-selfsub',
'krb5-subdomain',
'tcp-self',
'6to4-self',
'external',
],
Optional['name'] => String[1],
Optional['types'] => String[1],
}]