diff options
Diffstat (limited to 'roles/dns/templates/zones/1314233.xyz.zone.j2')
-rw-r--r-- | roles/dns/templates/zones/1314233.xyz.zone.j2 | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/roles/dns/templates/zones/1314233.xyz.zone.j2 b/roles/dns/templates/zones/1314233.xyz.zone.j2 index ede92da..5511c6e 100644 --- a/roles/dns/templates/zones/1314233.xyz.zone.j2 +++ b/roles/dns/templates/zones/1314233.xyz.zone.j2 @@ -1,21 +1,26 @@ -$ORIGIN 1314233.xyz. -$TTL 1h +{% set domain = "1314233.xyz" %} +{% set hostmaster = "hostmaster." + network.domain %} +; {{ ansible_managed }} +$ORIGIN {{ domain }}. +$TTL 1h -@ IN SOA ns.1314233.xyz. admin.1314233.xyz. ( - 2018022120 ; serial number +@ IN SOA {{ nameservers[0].ns[0] }}. {{ hostmaster }}. ( + {{ domain | next_serial }} ; serial number 1d ; refresh 2h ; retry 4w ; expire 1h ; minimum TTL ) -@ IN NS ns2.afraid.org. +{% for server in nameservers %} +{% for ns in server.ns %} +@ IN NS {{ ns }}. ; {{ server.name }} +{% endfor %} +{% endfor %} @ IN A {{ network.ipv4.address }} @ IN AAAA {{ network.ipv6.address }} -www IN CNAME www.233233.xyz. -g IN CNAME g.233233.xyz. -zw IN CNAME zw.233233.xyz. +* IN CNAME @ -; vim: set ft=bindzone : +; vim: set ft=bindzone: |