mirror of
https://github.com/chatmail/relay.git
synced 2026-05-19 20:38:05 +00:00
DNS: ensure dig is installed
This commit is contained in:
@@ -11,6 +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} -- "
|
||||||
|
try:
|
||||||
|
self.shell(f"apt update")
|
||||||
|
self.shell(f"apt install -y dnsutils")
|
||||||
|
except subprocess.CalledProcessError:
|
||||||
|
pass
|
||||||
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