From 09ee3525a3671da0365fc48fc5947e3c276631d8 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 4 Mar 2018 18:45:12 +0800 Subject: dns/zones: use DNS SOA variables --- roles/dns/templates/zones/liwt.net.zone.j2 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'roles/dns/templates/zones/liwt.net.zone.j2') diff --git a/roles/dns/templates/zones/liwt.net.zone.j2 b/roles/dns/templates/zones/liwt.net.zone.j2 index 1eabb77..bc74871 100644 --- a/roles/dns/templates/zones/liwt.net.zone.j2 +++ b/roles/dns/templates/zones/liwt.net.zone.j2 @@ -1,9 +1,8 @@ ; -*- mode: dns; -*- ; {{ ansible_managed }} -{% set domain = "liwt.net" %} {% set hostmaster = "hostmaster." + network.domain %} $ORIGIN {{ domain }}. -$TTL 1h +$TTL {{ dns.ttl }} ; WARNING: ; @@ -19,10 +18,10 @@ $TTL 1h @ IN SOA {{ nameservers[0].ns[0] }}. {{ hostmaster }}. ( {{ domain | next_serial }} ; serial number - 1d ; refresh - 2h ; retry - 4w ; expire - 1h ; minimum + {{ dns.refresh }} ; refresh + {{ dns.retry }} ; retry + {{ dns.expire }} ; expire + {{ dns.minimum }} ; minimum ) ; Name servers -- cgit v1.2.2