aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/templates/s.zone.j2
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2019-03-31 19:45:52 +0200
committerEmil Renner Berthing <esmil@labitat.dk>2019-04-01 13:07:23 +0200
commit88756850d1a5cb28b897bdcc9337fcb6977aad0b (patch)
treeebe21e61ac6e234fa19e2b555c21d1b647556d84 /roles/space_server/templates/s.zone.j2
parent48ffd1b69723dc6ddd023d803fc0edd8034ce386 (diff)
downloadlabitat-ansible-88756850d1a5cb28b897bdcc9337fcb6977aad0b.tar.gz
labitat-ansible-88756850d1a5cb28b897bdcc9337fcb6977aad0b.tar.xz
labitat-ansible-88756850d1a5cb28b897bdcc9337fcb6977aad0b.zip
space_server: named: use named instead of unbound
This reverts commit 3b795796bd03488a385f3ad42b10b8c0d61282c1, "space_server: unbound: use unbound instad of bind". Unlike unbound, bind supports synthesizing DNS64 answers only for certain clients, so only requests from the Labitat NAT64 network will get DNS64 answers.
Diffstat (limited to 'roles/space_server/templates/s.zone.j2')
-rw-r--r--roles/space_server/templates/s.zone.j221
1 files changed, 21 insertions, 0 deletions
diff --git a/roles/space_server/templates/s.zone.j2 b/roles/space_server/templates/s.zone.j2
new file mode 100644
index 0000000..6bf9718
--- /dev/null
+++ b/roles/space_server/templates/s.zone.j2
@@ -0,0 +1,21 @@
+s. 600 IN SOA space.labitat.dk. esmil.labitat.dk. 2019040101 7200 3600 604800 86400
+s. 600 IN NS space.labitat.dk.
+
+s. 600 IN A 10.42.1.1
+s. 600 IN AAAA 2a01:4260:1ab::
+
+labitrack.s. 600 IN A 185.38.175.70
+labitrack.s. 600 IN AAAA 2a01:4262:1ab::cafe
+track.s. 600 IN A 185.38.175.70
+track.s. 600 IN AAAA 2a01:4262:1ab::cafe
+{% for host in local_hosts %}
+
+{% if 'ips' in host and host.ips|length > 0 %}
+{% for ip in host.ips|ipv4 %}
+{{ host.name }}.s. 600 IN A {{ ip }}
+{% endfor %}
+{% for ip in host.ips|ipv6 %}
+{{ host.name }}.s. 600 IN AAAA {{ ip }}
+{% endfor %}
+{% endif %}
+{% endfor %}