DNS: don't check DNS on cmdeploy init anymore

This commit is contained in:
missytake
2024-06-03 09:21:41 +02:00
parent b651a9046b
commit 4271573e15
2 changed files with 2 additions and 5 deletions

View File

@@ -38,10 +38,6 @@ def init_cmd(args, out):
else:
write_initial_config(args.inipath, mail_domain)
out.green(f"created config file for {mail_domain} in {args.inipath}")
check_necessary_dns(
out,
mail_domain,
)
def run_cmd_options(parser):

View File

@@ -183,6 +183,7 @@ def show_dns(args, out) -> int:
def check_necessary_dns(out, mail_domain):
"""Check whether $mail_domain and mta-sts.$mail_domain resolve."""
print("Checking necessary DNS records... ")
dns = DNS(out, mail_domain)
ipv4 = dns.get("A", mail_domain)
ipv6 = dns.get("AAAA", mail_domain)
@@ -204,5 +205,5 @@ def check_necessary_dns(out, mail_domain):
print(line)
print()
else:
dns.out.green("\nAll necessary DNS entries seem to be set.")
dns.out.green("All necessary DNS records seem to be set.")
return True