mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-11-22 02:17:26 +00:00
clear the local dns cache each time the status checks are run by restarting bind9
This commit is contained in:
parent
d790cae0e2
commit
b75fbf22ca
@ -18,6 +18,10 @@ from mailconfig import get_mail_domains, get_mail_aliases
|
|||||||
from utils import shell, sort_domains, load_env_vars_from_file
|
from utils import shell, sort_domains, load_env_vars_from_file
|
||||||
|
|
||||||
def run_checks(env, output):
|
def run_checks(env, output):
|
||||||
|
# clear the DNS cache so our DNS checks are most up to date
|
||||||
|
shell('check_call', ["/usr/sbin/service", "bind9", "restart"])
|
||||||
|
|
||||||
|
# perform checks
|
||||||
env["out"] = output
|
env["out"] = output
|
||||||
run_system_checks(env)
|
run_system_checks(env)
|
||||||
run_network_checks(env)
|
run_network_checks(env)
|
||||||
|
Loading…
Reference in New Issue
Block a user