call rndc with a full path; remove hacks that were ineffective

This commit is contained in:
2016-02-23 20:50:50 -05:00
parent 96e974cab6
commit 80061a8829

View File

@ -59,11 +59,7 @@ sub do_rewrite {
print "Installing new slave host list\n"; print "Installing new slave host list\n";
system("install -o bind -g bind $path /etc/bind/martnet.slave.zones.9"); system("install -o bind -g bind $path /etc/bind/martnet.slave.zones.9");
print "Reloading DNS files\n"; print "Reloading DNS files\n";
system("rndc reload"); system("/usr/sbin/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");
} }
sub contains_zone { sub contains_zone {