in status checks, clear bind9 cache using rndc rather than restarting bind9
This commit is contained in:
parent
2b76fd299e
commit
399f9d9bdf
2 changed files with 9 additions and 2 deletions
|
@ -1,6 +1,13 @@
|
||||||
CHANGELOG
|
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)
|
v0.05 (November 18, 2014)
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,8 @@ 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
|
# clear bind9's DNS cache so our DNS checks are up to date
|
||||||
shell('check_call', ["/usr/sbin/service", "bind9", "restart"])
|
shell('check_call', ["/usr/sbin/rndc", "flush"])
|
||||||
|
|
||||||
# perform checks
|
# perform checks
|
||||||
env["out"] = output
|
env["out"] = output
|
||||||
|
|
Loading…
Reference in a new issue