29 lines
979 B
Django/Jinja
29 lines
979 B
Django/Jinja
// This is the primary configuration file for the BIND DNS server named.
|
|
//
|
|
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
|
|
// structure of BIND configuration files in Debian, *BEFORE* you customize
|
|
// this configuration file.
|
|
//
|
|
// If you are just adding zones, please do that in /etc/bind/named.conf.local
|
|
|
|
include "/etc/bind/named.conf.options";
|
|
include "/etc/bind/named.conf.local";
|
|
include "/etc/bind/named.conf.default-zones";
|
|
|
|
{% if dns_backend is defined and dns_backend.rndc_keys | length > 0 -%}
|
|
{% for name, key in dns_backend.rndc_keys.items() -%}
|
|
key "{{ name }}" {
|
|
algorithm {{ key["algorithm"] }};
|
|
secret "{{ key["secret"] }}";
|
|
};
|
|
{% endfor %}
|
|
|
|
controls {
|
|
inet 127.0.0.1 allow {localhost;};
|
|
{# inet {{ option.control_listen_ip }} allow { {{ option.control_ips }}; }; #}
|
|
{% if dns_backend is defined and dns_backend.rndc_keys | length > 0 %}
|
|
inet * allow { any; } keys { {{ dns_backend.keys }} };
|
|
{% endif -%}
|
|
};
|
|
{% endif %}
|