mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
DNS: lint
This commit is contained in:
@@ -11,7 +11,11 @@ class DNS:
|
|||||||
self.session = requests.Session()
|
self.session = requests.Session()
|
||||||
self.out = out
|
self.out = out
|
||||||
self.ssh = f"ssh root@{mail_domain} -- "
|
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:
|
try:
|
||||||
self.shell(f"unbound-control flush_zone {mail_domain}")
|
self.shell(f"unbound-control flush_zone {mail_domain}")
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
|
|||||||
Reference in New Issue
Block a user