dns suggest: Adds missing newlines to the Extra category

This commit is contained in:
Tagadda 2022-03-06 08:35:15 +00:00 committed by Tagada
commit 114d070dc2

View file

@ -90,6 +90,7 @@ def domain_dns_suggest(domain):
result += "\n{name} {ttl} IN {type} {value}".format(**record) result += "\n{name} {ttl} IN {type} {value}".format(**record)
if dns_conf["extra"]: if dns_conf["extra"]:
result += "\n\n"
result += "; Extra" result += "; Extra"
for record in dns_conf["extra"]: for record in dns_conf["extra"]:
result += "\n{name} {ttl} IN {type} {value}".format(**record) result += "\n{name} {ttl} IN {type} {value}".format(**record)