cmdeploy: run apt update to make sure dns-utils can be installed

This commit is contained in:
missytake
2025-04-20 21:17:51 +02:00
committed by holger krekel
parent 5f29c53232
commit b9a4471ee4
2 changed files with 4 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ def perform_initial_checks(mail_domain):
"""Collecting initial DNS settings."""
assert mail_domain
if not shell("dig", fail_ok=True):
shell("apt-get install -y dnsutils")
shell("apt-get update && apt-get install -y dnsutils")
A = query_dns("A", mail_domain)
AAAA = query_dns("AAAA", mail_domain)
MTA_STS = query_dns("CNAME", f"mta-sts.{mail_domain}")