33 lines
838 B
Django/Jinja
33 lines
838 B
Django/Jinja
// BIND options configuration
|
|
// Managed by Ansible - do not edit manually
|
|
|
|
options {
|
|
directory "{{ bind_zone_dir }}";
|
|
|
|
// Listen on IPv4 only
|
|
{% if bind_listen_ipv4 is defined %}
|
|
{% for ip in bind_listen_ipv4 %}
|
|
listen-on { {{ ip }}; };
|
|
{% endfor %}
|
|
{% endif %}
|
|
listen-on-v6 { none; };
|
|
|
|
// Query access
|
|
{% if bind_allow_query is defined %}
|
|
allow-query { {% for item in bind_allow_query %}{{ item }}; {% endfor %}};
|
|
{% endif %}
|
|
|
|
// Zone transfers
|
|
{% if bind_allow_transfer is defined %}
|
|
allow-transfer { {% for item in bind_allow_transfer %}{{ item }}; {% endfor %}};
|
|
{% endif %}
|
|
|
|
// Recursion
|
|
recursion {{ 'yes' if bind_recursion else 'no' }};
|
|
|
|
// DNSSEC validation (dnssec-enable removed in BIND 9.16+)
|
|
dnssec-validation {{ bind_dnssec_validation }};
|
|
|
|
// Version
|
|
version none;
|
|
};
|