You've already forked ansible-role-bind9
test(ubuntu): tested on ubuntu
This commit is contained in:
14
templates/etc/named.conf.j2
Normal file
14
templates/etc/named.conf.j2
Normal file
@ -0,0 +1,14 @@
|
||||
#
|
||||
# {{ ansible_managed }}
|
||||
#
|
||||
|
||||
# zone "." IN {
|
||||
# type hint;
|
||||
# file "named.ca";
|
||||
# };
|
||||
|
||||
include "{{ bind_config_directory }}/named.conf.acl";
|
||||
include "{{ bind_config_directory }}/named.conf.logging";
|
||||
include "{{ bind_config_directory }}/named.conf.options";
|
||||
include "{{ bind_config_directory }}/named.conf.tsigkeys";
|
||||
include "{{ bind_config_directory }}/named.conf.views";
|
@ -167,7 +167,7 @@ options {
|
||||
# allow-update-forwarding {};
|
||||
{% endif %}
|
||||
|
||||
directory "/etc/named";
|
||||
directory "{{ bind_config_directory }}";
|
||||
|
||||
dnssec-validation {{ bind9_options.dnssec_validation | default('no') }};
|
||||
|
@ -127,7 +127,7 @@ view "{{ view.name }}" {
|
||||
# is complete. If the Master is not available or the Slave fails to
|
||||
# contact the Master, ffor whatever reason, the zone may be left with
|
||||
# no effective Authoritative Name Servers.
|
||||
file "/etc/named/{{ zone.file }}";
|
||||
file "{{ bind_config_directory }}/{{ zone.file }}";
|
||||
|
||||
# master servers
|
||||
# https://bind9.readthedocs.io/en/latest/manpages.html?highlight=masters#masters
|
@ -1,12 +0,0 @@
|
||||
# zone "." IN {
|
||||
# type hint;
|
||||
# file "named.ca";
|
||||
# };
|
||||
|
||||
include "/etc/named/named.conf.acl";
|
||||
include "/etc/named/named.conf.logging";
|
||||
include "/etc/named/named.conf.options";
|
||||
include "/etc/named/named.conf.tsigkeys";
|
||||
include "/etc/named/named.conf.views";
|
||||
# include "/etc/named.rfc1912.zones";
|
||||
# include "/etc/named.root.key";
|
Reference in New Issue
Block a user