mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[mod] uniformise TTL declarations
This commit is contained in:
parent
4817be9491
commit
34ef4c7092
1 changed files with 2 additions and 2 deletions
|
@ -230,7 +230,7 @@ def domain_generate_dns_configuration(auth, domain):
|
|||
|
||||
ip4 = urlopen("http://ip.yunohost.org").read().strip()
|
||||
|
||||
result = "@ 1400 IN A {ip4}\n* 900 IN A {ip4}\n".format(ip4=ip4)
|
||||
result = "@ 1400 IN A {ip4}\n* 1400 IN A {ip4}\n".format(ip4=ip4)
|
||||
|
||||
ip6 = None
|
||||
|
||||
|
@ -239,7 +239,7 @@ def domain_generate_dns_configuration(auth, domain):
|
|||
except Exception:
|
||||
pass
|
||||
else:
|
||||
result += "@ 1400 IN AAAA {ip6}\n* 900 IN AAAA {ip6}\n".format(ip6=ip6)
|
||||
result += "@ 1400 IN AAAA {ip6}\n* 1400 IN AAAA {ip6}\n".format(ip6=ip6)
|
||||
|
||||
result += "\n_xmpp-client._tcp 14400 IN SRV 0 5 5222 {domain}.\n_xmpp-server._tcp 14400 IN SRV 0 5 5269 {domain}.\n".format(domain=domain)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue