From 80061a8829856e20294e78225817d5c1dab1ab60 Mon Sep 17 00:00:00 2001 From: Jorj Bauer Date: Tue, 23 Feb 2016 20:50:50 -0500 Subject: [PATCH] call rndc with a full path; remove hacks that were ineffective --- bin/sync-slave | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/bin/sync-slave b/bin/sync-slave index bb8d769..7d52281 100755 --- a/bin/sync-slave +++ b/bin/sync-slave @@ -59,11 +59,7 @@ sub do_rewrite { print "Installing new slave host list\n"; system("install -o bind -g bind $path /etc/bind/martnet.slave.zones.9"); print "Reloading DNS files\n"; - system("rndc reload"); - # Wait a couple seconds for it to catch up - sleep(2); - # Reload again - so that new slave zones start syncing - system("rndc reload"); + system("/usr/sbin/rndc reload"); } sub contains_zone {