DNS: lint

This commit is contained in:
missytake 2024-04-02 21:54:37 +02:00
parent a78d4e6198
commit 2d26a40c2b

View File

@ -11,7 +11,11 @@ class DNS:
self.session = requests.Session()
self.out = out
self.ssh = f"ssh root@{mail_domain} -- "
self.out.shell_output(f"{ self.ssh }'apt-get update && apt-get install -y dnsutils'", timeout=60, no_print=True)
self.out.shell_output(
f"{ self.ssh }'apt-get update && apt-get install -y dnsutils'",
timeout=60,
no_print=True,
)
try:
self.shell(f"unbound-control flush_zone {mail_domain}")
except subprocess.CalledProcessError: