summaryrefslogtreecommitdiff
path: root/roles/nameservers/templates/named.conf.local.primary.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/nameservers/templates/named.conf.local.primary.j2')
-rw-r--r--roles/nameservers/templates/named.conf.local.primary.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/roles/nameservers/templates/named.conf.local.primary.j2 b/roles/nameservers/templates/named.conf.local.primary.j2
new file mode 100644
index 0000000..0234278
--- /dev/null
+++ b/roles/nameservers/templates/named.conf.local.primary.j2
@@ -0,0 +1,7 @@
+{% for zone in dns_zones %}
+zone "{{ zone.zone_name }}" {
+ type master;
+ file "/etc/bind/{{ zone.zone_file }}";
+ allow-transfer { {{ dns_replica_ip }}; };
+};
+{% endfor %}