From de7b2b91ca0d8fdceeb964118881b6d947e33715 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Thu, 8 Jul 2021 16:54:58 +0200 Subject: [PATCH] wip --- bundles/bind/files/db | 2 +- bundles/bind/items.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bundles/bind/files/db b/bundles/bind/files/db index a5c1703..9f00adf 100644 --- a/bundles/bind/files/db +++ b/bundles/bind/files/db @@ -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 diff --git a/bundles/bind/items.py b/bundles/bind/items.py index 775e8db..30ae565 100644 --- a/bundles/bind/items.py +++ b/bundles/bind/items.py @@ -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