summaryrefslogtreecommitdiff
path: root/roles/network/bind
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-11-11 22:34:56 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-11-11 22:34:56 +0100
commit4d9138b8283eced0c5b47865e2023c63a55558c2 (patch)
tree90af17e3c71e363937eac5aa45df6b93ebb02739 /roles/network/bind
parentminor cleanups (diff)
ch-pan: deploy new and improved dyndns/server
Diffstat (limited to 'roles/network/bind')
-rw-r--r--roles/network/bind/templates/master-zones.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/network/bind/templates/master-zones.j2 b/roles/network/bind/templates/master-zones.j2
index 2e400711..737b5e84 100644
--- a/roles/network/bind/templates/master-zones.j2
+++ b/roles/network/bind/templates/master-zones.j2
@@ -3,6 +3,10 @@
zone "{{ zone }}" {
type master;
+{% if 'remote_file' in bind_master_zones[zone] %}
+ file "{{ bind_master_zones[zone].remote_file }}";
+{% else %}
file "/etc/bind/db.{{ zone }}";
+{% endif %}
};
{% endfor %}