templier-ansible/roles/bind/templates/named.conf.local.j2

19 lines
395 B
Django/Jinja

{{ ansible_header | comment('//') }}
//
// Do any local configuration here
//
// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";
{% for domain in bind.domains %}
zone "{{ domain.name }}" {
type master;
file "/var/lib/bind/{{ domain.name }}/db";
notify yes;
allow-transfer { {{ domain.slave }}; };
};
{% endfor %}