ansible-ffibk/roles/service-bind-slave/templates/named.conf.ffmwu-zones.j2
Tobias Hachmer 869dd5b62a
Migrate internal DNS master to PowerDNS
* Add playbook dns to manage internal dns master servers
 * Add role to manage PowerDNS Admin Web Frontend for PowerDNS
 * Move dns zone related data from mesh list to a simpler dict with a simple zone list
 * Update role service-bind-slave
 * Update Readme.md
 * Add requirements.yml
 * Update .gitignore
2019-03-20 19:43:11 +01:00

28 lines
577 B
Django/Jinja

//
// {{ ansible_managed }}
//
// ACLs
masters "ns-master-ffmwu" {
{{ dns_internal.master_ipv4 | ipaddr('address') }};
{{ dns_internal.master_ipv6 | ipaddr('address') }};
};
acl "internal" {
{% for network in internal_prefixes %}
{{ network.ipv4 | ipaddr('net') | ipaddr('network/prefix') }};
{{ network.ipv6 | ipaddr('net') | ipaddr('network/prefix') }};
{% endfor %}
};
// DNS forward zones
{% for zone in dns_internal.zones %}
zone "{{ zone }}." {
type slave;
file "{{ zone }}.db";
masters { ns-master-ffmwu; };
};
{% if not loop.last %}
{% endif %}
{% endfor %}