mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
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:
parent
cb29e20b9f
commit
d7967f6d5f
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue