aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-12-01 16:08:37 +0800
committerAaron LI <aly@aaronly.me>2018-12-01 16:13:18 +0800
commite0c4c5f5de5d488d40ad34f630e4c7dc93f92587 (patch)
treeef811b08717c3163c9eb4d19595b64a81bdbd4c5
parent8e27df82ca0bc380d72e2e44acb96be9c2ee556c (diff)
downloadansible-dfly-vps-e0c4c5f5de5d488d40ad34f630e4c7dc93f92587.tar.bz2
dns: Add CNAME d.233233.xyz
-rw-r--r--group_vars/all/vars.yml1
-rw-r--r--roles/dns/templates/zones/233233.xyz.zone.j22
2 files changed, 2 insertions, 1 deletions
diff --git a/group_vars/all/vars.yml b/group_vars/all/vars.yml
index be0a834..67a18a3 100644
--- a/group_vars/all/vars.yml
+++ b/group_vars/all/vars.yml
@@ -28,6 +28,7 @@ domains:
- name: 233233.xyz
sub:
- www
+ - d
- g
- zw
- name: 1314233.xyz
diff --git a/roles/dns/templates/zones/233233.xyz.zone.j2 b/roles/dns/templates/zones/233233.xyz.zone.j2
index 8001482..efe0716 100644
--- a/roles/dns/templates/zones/233233.xyz.zone.j2
+++ b/roles/dns/templates/zones/233233.xyz.zone.j2
@@ -21,7 +21,7 @@ $TTL {{ dns.ttl }}
@ IN A {{ network.ipv4.address }}
@ IN AAAA {{ network.ipv6.address }}
-{% for name in ["www", "g", "zw", "*"] %}
+{% for name in ["www", "d", "g", "zw", "*"] %}
{{ name }} IN CNAME @
{% endfor %}