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

This commit is contained in:
Joshua Tauberer 2014-10-23 17:06:33 +00:00
parent d790cae0e2
commit b75fbf22ca
1 changed files with 4 additions and 0 deletions

View File

@ -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)