[fix] DNS conf

This commit is contained in:
ljf 2020-12-08 17:05:51 +01:00
parent 555f0e3c65
commit f1f97d0235

View file

@ -258,6 +258,10 @@ def domain_dns_conf(domain, ttl=None):
"""
domains = domain_list()
if domain not in domain_list()['domains']:
raise YunohostError('domain_name_unknown', domain=domain)
ttl = 3600 if ttl is None else ttl
dns_conf = _build_dns_conf(domain, ttl)