mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] DNS conf
This commit is contained in:
parent
555f0e3c65
commit
f1f97d0235
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue