Fix comment lines in DNS zone example (using ";")

If copy-pasted into a registrar zone file, the provided DNS zone sample for a given domain will fail, because comments lines start with "#"

However, comments character in DNS zone files is ";" not "#"

https://en.wikipedia.org/wiki/Zone_file
This commit is contained in:
JocelynDelalande 2018-01-08 17:59:53 +01:00 committed by GitHub
parent cb29e20b9f
commit d7967f6d5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -188,17 +188,17 @@ def domain_dns_conf(domain, ttl=None):
result = ""
result += "# Basic ipv4/ipv6 records"
result += "; Basic ipv4/ipv6 records"
for record in dns_conf["basic"]:
result += "\n{name} {ttl} IN {type} {value}".format(**record)
result += "\n\n"
result += "# XMPP"
result += "; XMPP"
for record in dns_conf["xmpp"]:
result += "\n{name} {ttl} IN {type} {value}".format(**record)
result += "\n\n"
result += "# Mail"
result += "; Mail"
for record in dns_conf["mail"]:
result += "\n{name} {ttl} IN {type} {value}".format(**record)