Files
sunbeam-charms/charms/designate-bind-k8s/src/templates/named.conf.j2
T
2023-09-06 11:21:56 +02:00

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 %}