Commit b75fbf22 authored by Joshua Tauberer's avatar Joshua Tauberer

clear the local dns cache each time the status checks are run by restarting bind9

parent d790cae0
......@@ -18,6 +18,10 @@ from mailconfig import get_mail_domains, get_mail_aliases
from utils import shell, sort_domains, load_env_vars_from_file
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
run_system_checks(env)
run_network_checks(env)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment