Bug fixe + cleaning

This commit is contained in:
MercierCorentin 2021-07-15 21:07:26 +02:00
parent 8104e48e40
commit d358452a03
3 changed files with 2 additions and 3 deletions

View file

@ -448,7 +448,7 @@ domain:
action: store_true
### domain_push_config()
push_config:
push-config:
action_help: Push DNS records to registrar
api: GET /domains/<domain>/push
arguments:

View file

@ -509,7 +509,7 @@ def _build_dns_conf(domain):
if domain_name == domain:
name = "@" if owned_dns_zone else root_prefix
else:
name = domain_name[0 : -(1 + len(domain))]
name = domain_name
if not owned_dns_zone:
name += "." + root_prefix

View file

@ -52,7 +52,6 @@ def get_dns_zone_from_domain(domain):
for i in range(0, len(domain_subs)):
current_domain = separator.join(domain_subs)
answer = dig(current_domain, rdtype="NS", full_answers=True, resolvers="force_external")
print(answer)
if answer[0] == "ok" :
# Domain is dns_zone
return current_domain