aboutsummaryrefslogtreecommitdiffstats
path: root/roles/dns/templates/zones/233233.xyz.zone.j2
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2018-03-04 18:45:12 +0800
committerAaron LI <aly@aaronly.me>2018-03-14 11:35:08 +0800
commit09ee3525a3671da0365fc48fc5947e3c276631d8 (patch)
tree5ce95d6372b925e9781cebada1c09fbd30250110 /roles/dns/templates/zones/233233.xyz.zone.j2
parent442369be9cdfa8b1095d9fdd836355a1767aaa83 (diff)
downloadansible-dfly-vps-09ee3525a3671da0365fc48fc5947e3c276631d8.tar.bz2
dns/zones: use DNS SOA variables
Diffstat (limited to 'roles/dns/templates/zones/233233.xyz.zone.j2')
-rw-r--r--roles/dns/templates/zones/233233.xyz.zone.j211
1 files changed, 5 insertions, 6 deletions
diff --git a/roles/dns/templates/zones/233233.xyz.zone.j2 b/roles/dns/templates/zones/233233.xyz.zone.j2
index 4067cea..21a414a 100644
--- a/roles/dns/templates/zones/233233.xyz.zone.j2
+++ b/roles/dns/templates/zones/233233.xyz.zone.j2
@@ -1,15 +1,14 @@
-{% set domain = "233233.xyz" %}
{% set hostmaster = "hostmaster." + network.domain %}
; {{ ansible_managed }}
$ORIGIN {{ domain }}.
-$TTL 1h
+$TTL {{ dns.ttl }}
@ IN SOA {{ nameservers[0].ns[0] }}. {{ hostmaster }}. (
{{ domain | next_serial }} ; serial number
- 1d ; refresh
- 2h ; retry
- 4w ; expire
- 1h ; minimum TTL
+ {{ dns.refresh }} ; refresh
+ {{ dns.retry }} ; retry
+ {{ dns.expire }} ; expire
+ {{ dns.minimum }} ; minimum
)
{% for server in nameservers %}