This commit is contained in:
mwiegand 2021-06-18 18:59:48 +02:00
parent a0c997dc23
commit 13444f1f33
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,12 @@
$TTL 600
@ IN SOA ns.sublimity.de. admin.sublimity.de. (
2020080302 ;Serial
1200 ;Refresh
600 ;Retry
1209600 ;Expire
600 ;Negative response caching TTL
)
% for record in records:
${record[0].ljust(max_name)} IN ${record[1].ljust(max_type)} ${record[2]}
% endfor

View file

@ -0,0 +1,8 @@
# for zone, records in node.metadata.get('bind/zones').items():
# files[f'/var/lib/bind/{zone}'] = {
# 'source': 'zonefile',
# 'content_type': 'mako',
# 'context': {
# 'records': records,
# }
# }