This commit is contained in:
mwiegand 2021-06-20 13:00:22 +02:00
parent c1ad072f8e
commit 919169d1dc
2 changed files with 4 additions and 3 deletions

View file

@ -53,6 +53,7 @@ svc_systemd['bind9'] = {}
actions['named-checkconf'] = { actions['named-checkconf'] = {
'command': 'named-checkconf -z', 'command': 'named-checkconf -z',
'unless': 'named-checkconf -z',
'needs': [ 'needs': [
'svc_systemd:bind9', 'svc_systemd:bind9',
] ]

View file

@ -19,12 +19,12 @@ defaults = {
def dns(metadata): def dns(metadata):
return { return {
'dns': { 'dns': {
'ns.sublimity.de': { metadata.get('bind/domain'): {
'A': [ 'A': [
str(ip_interface(metadata.get('network/ipv4')).ip) str(ip_interface(metadata.get('network/ipv4')).ip),
], ],
'AAAA': [ 'AAAA': [
str(ip_interface(metadata.get('network/ipv6')).ip) str(ip_interface(metadata.get('network/ipv6')).ip),
] ]
}, },
}, },