diff --git a/webmin/letsencrypt-cleanup.pl b/webmin/letsencrypt-cleanup.pl index bdf358469..7a76faa84 100755 --- a/webmin/letsencrypt-cleanup.pl +++ b/webmin/letsencrypt-cleanup.pl @@ -35,6 +35,6 @@ if ($r) { &unlock_file(&bind8::make_chroot(&bind8::absolute_path($zone->{'file'}))); # Apply the change -&bind8::restart_bind(); +&restart_zone($zone->{'name'}, $zone->{'view'}); sleep(10); # Wait for DNS propagation &webmin_log("letsencryptcleanup", undef, $dname); diff --git a/webmin/letsencrypt-dns.pl b/webmin/letsencrypt-dns.pl index c5527fa6c..f1a94277f 100755 --- a/webmin/letsencrypt-dns.pl +++ b/webmin/letsencrypt-dns.pl @@ -44,7 +44,7 @@ if ($r) { &unlock_file(&bind8::make_chroot(&bind8::absolute_path($zone->{'file'}))); # Apply the change -&bind8::restart_bind(); +&restart_zone($zone->{'name'}, $zone->{'view'}); sleep(10); # Wait for DNS propagation &webmin_log("letsencryptdns", undef, $dname); exit(0);