aboutsummaryrefslogtreecommitdiffstats
path: root/roles/dns/templates/zones/233233.xyz.zone.j2
blob: 4067cea3dce014b58c621075d767fdb3c309aa40 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{% set domain = "233233.xyz" %}
{% set hostmaster = "hostmaster." + network.domain %}
; {{ ansible_managed }}
$ORIGIN     {{ domain }}.
$TTL        1h

@           IN  SOA     {{ nameservers[0].ns[0] }}.  {{ hostmaster }}.  (
                        {{ domain | next_serial }}  ; serial number
                        1d          ; refresh
                        2h          ; retry
                        4w          ; expire
                        1h          ; minimum TTL
                        )

{% 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   @
g           IN  CNAME   @
zw          IN  CNAME   @
*           IN  CNAME   @

; vim: set ft=bindzone: