From 399f9d9bdff62be8b4f42ea995550b07b6101212 Mon Sep 17 00:00:00 2001 From: Joshua Tauberer Date: Fri, 26 Dec 2014 13:22:14 +0000 Subject: [PATCH] in status checks, clear bind9 cache using rndc rather than restarting bind9 --- CHANGELOG.md | 7 +++++++ management/status_checks.py | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 057a132f..d7c66d1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,13 @@ CHANGELOG ========= +in development +-------------- + +Control panel: + +* The local DNS cache is cleared before running the status checks using 'rncd' now rather than restarting 'bind9', which should be faster and wont interrupt other services. + v0.05 (November 18, 2014) ------------------------- diff --git a/management/status_checks.py b/management/status_checks.py index 487c4a6b..898d1602 100755 --- a/management/status_checks.py +++ b/management/status_checks.py @@ -18,8 +18,8 @@ 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"]) + # clear bind9's DNS cache so our DNS checks are up to date + shell('check_call', ["/usr/sbin/rndc", "flush"]) # perform checks env["out"] = output