ansible-role-bind/templates/named.conf.options.j2

20 lines
518 B
Text
Raw Normal View History

2017-10-08 12:55:01 +00:00
# {{ ansible_managed }}
options {
2018-03-17 17:26:08 +00:00
directory "/var/cache/bind";
2017-10-08 12:55:01 +00:00
2018-03-17 17:26:08 +00:00
dnssec-enable yes;
dnssec-validation yes;
dnssec-lookaside auto;
2017-10-08 12:55:01 +00:00
2018-03-17 17:26:08 +00:00
auth-nxdomain no; # conform to RFC1035
listen-on { {% if bind_listen_ipv4 %}any{% else %}none{% endif %}; };
listen-on-v6 { {% if bind_listen_ipv6 %}any{% else %}none{% endif %}; };
2017-10-08 12:55:01 +00:00
2018-03-21 19:30:11 +00:00
{% for option, value in bind_options.iteritems() %}
{{ option }} {% if value == True %}yes{% elif value == False %}no{% else %}{{ value }}{% endif %};
{% endfor %}
2018-03-17 17:26:08 +00:00
version none;
2017-10-08 12:55:01 +00:00
};