Reload the zone after running the reload.d hooks for dns_reload_zone

This matches the existing behaviour of dns_regenerate in
functions_dns.sh, where dns_reload_zone is called before bind9 reload
is invoked for the domain.

A future improvement would be to add a new hook for modifying zone
files in save_zone() instead of doing it in a script in reload.d
This commit is contained in:
Kienan Stewart 2018-07-27 13:22:12 -04:00
parent d6d25e9ec6
commit e24d17288b
1 changed files with 1 additions and 1 deletions

View File

@ -502,8 +502,8 @@ class system_bind {
if ( ( $all || strtoupper($ds['dns_action']) == 'UPDATE' ) && $ds['gesdns'] ) {
$this->save_zone($domain);
$this->reload_zone($domain);
$hooks->invoke_scripts("/usr/lib/alternc/reload.d", array('dns_reload_zone', $domain) );
$this->reload_zone($domain);
}
} // end foreach domain