DNS: ensure dig is installed

This commit is contained in:
missytake 2024-04-02 19:54:42 +02:00
parent 5e55cc205d
commit 2a1e004962

View File

@ -11,6 +11,11 @@ class DNS:
self.session = requests.Session()
self.out = out
self.ssh = f"ssh root@{mail_domain} -- "
try:
self.shell(f"apt update")
self.shell(f"apt install -y dnsutils")
except subprocess.CalledProcessError:
pass
try:
self.shell(f"unbound-control flush_zone {mail_domain}")
except subprocess.CalledProcessError: