roles/named: Add allow-update block to named.conf

The `allow-update` block in `named.conf` enumerates the hosts/networks
that are allowed to issue dynamic DNS updates. This is required in
Active Directory and other environments where clients and/or DHCP
servers create DNS records automatically.

By default, the block is omitted from the generated configuration file.
The `named_allow_update` variable can be set to a list of patterns (e.g.
CIDR blocks, ACL names, etc.) to populate it.
jenkins-master
Dustin 2018-02-18 10:04:27 -06:00
parent 10ae79e5a2
commit f5b922265b
1 changed files with 8 additions and 0 deletions

View File

@ -23,6 +23,14 @@ options {
{{ match }};
{% endfor %}
};
{% if named_allow_update %}
allow-update {
{% for match in named_allow_update %}
{{ match }};
{% endfor %}
};
{% endif %}
recursion {{ yesno(named_recursion) }};