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 %}