diff --git a/bundles/bind/files/db b/bundles/bind/files/db index a3c4ecd..2a4585b 100644 --- a/bundles/bind/files/db +++ b/bundles/bind/files/db @@ -3,8 +3,8 @@ def column_width(column, table): return max(map(lambda row: len(row[column]), table)) if table else 0 %>\ $TTL 600 -@ IN SOA ns.sublimity.de. admin.sublimity.de. ( - 2021070820 ;Serial +@ IN SOA ${hostname}. admin.${hostname}. ( + 2021070821 ;Serial 600 ;Refresh 300 ;Retry 1209600 ;Expire diff --git a/bundles/bind/items.py b/bundles/bind/items.py index 30ae565..0a96813 100644 --- a/bundles/bind/items.py +++ b/bundles/bind/items.py @@ -129,6 +129,7 @@ for view in views: lambda record: use_record(record, records, view['name']), records )), + 'hostname': node.metadata.get('bind/hostname'), }, 'needs': [ f"directory:/var/lib/bind/{view['name']}",