/etc/maas/templates/dns/zone.template is in maas-region-api 2.0.0~beta3+bzr4941-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | ; Zone file modified: {{modified}}.
$TTL {{ttl}}
@ IN SOA {{domain}}. nobody.example.com. (
{{serial}} ; serial
600 ; Refresh
1800 ; Retry
604800 ; Expire
{{ttl}} ; NXTTL
)
{{ns_ttl}} IN NS {{domain}}.
{{for type, directive in generate_directives.items()}}
{{for iterator_values, rdns, hostname in directive}}
$GENERATE {{iterator_values}} {{rdns}} IN {{type}} {{hostname}}
{{endfor}}
{{endfor}}
{{for type, mapping in mappings.items()}}
{{for item_from, rrttl, item_to in mapping}}
{{item_from}} {{rrttl}} IN {{type}} {{item_to}}
{{endfor}}
{{endfor}}
{{for item_from, rrttl, rrtype, rrdata in other_mapping}}
{{item_from}} {{rrttl}} IN {{rrtype}} {{rrdata}}
{{endfor}}
|