From f6dce9adabfc10e1700d3229d0bb334ac6a1424f Mon Sep 17 00:00:00 2001 From: mwiegand Date: Mon, 12 Jul 2021 21:20:08 +0200 Subject: [PATCH] wip --- bundles/bind/files/db | 6 +++--- bundles/bind/metadata.py | 1 + nodes/htz.mails.py | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bundles/bind/files/db b/bundles/bind/files/db index 2a4585b..8644995 100644 --- a/bundles/bind/files/db +++ b/bundles/bind/files/db @@ -5,10 +5,10 @@ def column_width(column, table): $TTL 600 @ IN SOA ${hostname}. admin.${hostname}. ( 2021070821 ;Serial - 600 ;Refresh - 300 ;Retry + 3600 ;Refresh + 200 ;Retry 1209600 ;Expire - 300 ;Negative response caching TTL + 900 ;Negative response caching TTL ) % for record in sorted(records, key=lambda r: (r['name'], r['type'], r['value'])): diff --git a/bundles/bind/metadata.py b/bundles/bind/metadata.py index b772f8a..c423480 100644 --- a/bundles/bind/metadata.py +++ b/bundles/bind/metadata.py @@ -81,6 +81,7 @@ def ns_records(metadata): 'zones': { zone: [ {'name': '@', 'type': 'NS', 'value': f"{metadata.get('bind/hostname')}."}, + {'name': '@', 'type': 'NS', 'value': f"{metadata.get('bind/secondary_hostname')}."}, ] for zone in metadata.get('bind/zones').keys() }, }, diff --git a/nodes/htz.mails.py b/nodes/htz.mails.py index 519bb98..a1823bf 100644 --- a/nodes/htz.mails.py +++ b/nodes/htz.mails.py @@ -18,6 +18,7 @@ 'id': 'ea29bdf0-0b47-4bf4-8346-67d60c9dc4ae', 'bind': { 'hostname': 'resolver.name', + 'secondary_hostname': 'second.resolver.name', 'zones': { 'sublimity.de': [], 'freibrief.net': [],