This commit is contained in:
mwiegand 2021-07-08 16:54:58 +02:00
parent 872ae37902
commit de7b2b91ca
2 changed files with 3 additions and 1 deletions

View file

@ -4,7 +4,7 @@ def column_width(column, table):
%>\
$TTL 600
@ IN SOA ns.sublimity.de. admin.sublimity.de. (
2020080302 ;Serial
${serial} ;Serial
600 ;Refresh
300 ;Retry
1209600 ;Expire

View file

@ -1,4 +1,5 @@
from ipaddress import ip_address
from datetime import datetime
directories[f'/var/lib/bind'] = {
'purge': True,
@ -123,6 +124,7 @@ for view in views:
'content_type': 'mako',
'context': {
'view': view['name'],
'serial': datetime.now().strftime('%Y%m%d%H'),
'records': list(filter(
lambda record: use_record(record, records, view['name']),
records