aboutsummaryrefslogtreecommitdiffstats
path: root/roles/dns/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/dns/templates')
-rw-r--r--roles/dns/templates/zones/1314233.xyz.zone.j23
-rw-r--r--roles/dns/templates/zones/233233.xyz.zone.j210
-rw-r--r--roles/dns/templates/zones/aaronly.me.zone.j26
-rw-r--r--roles/dns/templates/zones/liwt.net.zone.j29
4 files changed, 14 insertions, 14 deletions
diff --git a/roles/dns/templates/zones/1314233.xyz.zone.j2 b/roles/dns/templates/zones/1314233.xyz.zone.j2
index b309e67..bb8fc06 100644
--- a/roles/dns/templates/zones/1314233.xyz.zone.j2
+++ b/roles/dns/templates/zones/1314233.xyz.zone.j2
@@ -1,5 +1,6 @@
-{% set hostmaster = "hostmaster." + network.domain %}
+; -*- mode: dns; -*-
; {{ ansible_managed }}
+{% set hostmaster = "hostmaster." + network.domain %}
$ORIGIN {{ domain }}.
$TTL {{ dns.ttl }}
diff --git a/roles/dns/templates/zones/233233.xyz.zone.j2 b/roles/dns/templates/zones/233233.xyz.zone.j2
index 21a414a..8001482 100644
--- a/roles/dns/templates/zones/233233.xyz.zone.j2
+++ b/roles/dns/templates/zones/233233.xyz.zone.j2
@@ -1,5 +1,6 @@
-{% set hostmaster = "hostmaster." + network.domain %}
+; -*- mode: dns; -*-
; {{ ansible_managed }}
+{% set hostmaster = "hostmaster." + network.domain %}
$ORIGIN {{ domain }}.
$TTL {{ dns.ttl }}
@@ -20,9 +21,8 @@ $TTL {{ dns.ttl }}
@ IN A {{ network.ipv4.address }}
@ IN AAAA {{ network.ipv6.address }}
-www IN CNAME @
-g IN CNAME @
-zw IN CNAME @
-* IN CNAME @
+{% for name in ["www", "g", "zw", "*"] %}
+{{ name }} IN CNAME @
+{% endfor %}
; vim: set ft=bindzone:
diff --git a/roles/dns/templates/zones/aaronly.me.zone.j2 b/roles/dns/templates/zones/aaronly.me.zone.j2
index 5a60d31..3b2f0d0 100644
--- a/roles/dns/templates/zones/aaronly.me.zone.j2
+++ b/roles/dns/templates/zones/aaronly.me.zone.j2
@@ -25,9 +25,11 @@ dorm-x42 IN A 58.196.142.84
office IN A 202.120.52.45
cluster IN A 202.120.52.63
liteserver IN A 5.2.70.218
+liteserver IN AAAA 2a04:52c0:101:55a::218
-www IN CNAME @
-* IN CNAME @
+{% for name in ["www", "g", "zw", "git", "carddav", "caldav"] %}
+{{ name }} IN CNAME liteserver
+{% endfor %}
; Mail server
{% if domain != network.domain %}
diff --git a/roles/dns/templates/zones/liwt.net.zone.j2 b/roles/dns/templates/zones/liwt.net.zone.j2
index bc74871..bbd7d14 100644
--- a/roles/dns/templates/zones/liwt.net.zone.j2
+++ b/roles/dns/templates/zones/liwt.net.zone.j2
@@ -34,12 +34,9 @@ $TTL {{ dns.ttl }}
@ IN A {{ network.ipv4.address }}
@ IN AAAA {{ network.ipv6.address }}
-vultr IN CNAME @
-www IN CNAME @
-git IN CNAME @
-carddav IN CNAME @
-caldav IN CNAME @
-* IN CNAME @
+{% for name in ["vultr", "www", "git", "carddav", "caldav", "*"] %}
+{{ name }} IN CNAME @
+{% endfor %}
; Mail server
{% if domain == network.domain %}