aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/templates/s.zone.j2
blob: a392f3da381dcf9678e2ba1cbf021ca9c34ea7f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 'ipv4' in host or 'ipv6' in host %}

{% if 'ipv4' in host %}
{% for ip in host.ipv4 %}
{{ host.name }}.s. 600 IN A {{ ip }}
{% endfor %}
{% endif %}
{% if 'ipv6' in host %}
{% for ip in host.ipv6 %}
{{ host.name }}.s. 600 IN AAAA {{ ip }}
{% endfor %}
{% endif %}
{% endif %}
{% endfor %}