DNS: optimize dnsutils installation command
This commit is contained in:
parent
2a1e004962
commit
a78d4e6198
@ -11,11 +11,7 @@ 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
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user