This commit is contained in:
mwiegand 2021-07-12 21:20:08 +02:00
parent 1481a99ae0
commit f6dce9adab
3 changed files with 5 additions and 3 deletions

View file

@ -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'])):

View file

@ -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()
},
},

View file

@ -18,6 +18,7 @@
'id': 'ea29bdf0-0b47-4bf4-8346-67d60c9dc4ae',
'bind': {
'hostname': 'resolver.name',
'secondary_hostname': 'second.resolver.name',
'zones': {
'sublimity.de': [],
'freibrief.net': [],