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'] = {
'command': 'named-checkconf -z',
'unless': 'named-checkconf -z',
'needs': [
'svc_systemd:bind9',
]

View file

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