wip
This commit is contained in:
parent
1481a99ae0
commit
f6dce9adab
3 changed files with 5 additions and 3 deletions
|
@ -5,10 +5,10 @@ def column_width(column, table):
|
||||||
$TTL 600
|
$TTL 600
|
||||||
@ IN SOA ${hostname}. admin.${hostname}. (
|
@ IN SOA ${hostname}. admin.${hostname}. (
|
||||||
2021070821 ;Serial
|
2021070821 ;Serial
|
||||||
600 ;Refresh
|
3600 ;Refresh
|
||||||
300 ;Retry
|
200 ;Retry
|
||||||
1209600 ;Expire
|
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'])):
|
% for record in sorted(records, key=lambda r: (r['name'], r['type'], r['value'])):
|
||||||
|
|
|
@ -81,6 +81,7 @@ def ns_records(metadata):
|
||||||
'zones': {
|
'zones': {
|
||||||
zone: [
|
zone: [
|
||||||
{'name': '@', 'type': 'NS', 'value': f"{metadata.get('bind/hostname')}."},
|
{'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()
|
] for zone in metadata.get('bind/zones').keys()
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
'id': 'ea29bdf0-0b47-4bf4-8346-67d60c9dc4ae',
|
'id': 'ea29bdf0-0b47-4bf4-8346-67d60c9dc4ae',
|
||||||
'bind': {
|
'bind': {
|
||||||
'hostname': 'resolver.name',
|
'hostname': 'resolver.name',
|
||||||
|
'secondary_hostname': 'second.resolver.name',
|
||||||
'zones': {
|
'zones': {
|
||||||
'sublimity.de': [],
|
'sublimity.de': [],
|
||||||
'freibrief.net': [],
|
'freibrief.net': [],
|
||||||
|
|
Loading…
Reference in a new issue