diff --git a/bin/sync-slave b/bin/sync-slave index bb27d11..bb8d769 100755 --- a/bin/sync-slave +++ b/bin/sync-slave @@ -60,6 +60,10 @@ sub do_rewrite { 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"); } sub contains_zone {