Error: bind9 restart failed<br>Error: dns domain deletion failed

I can’t remove a user. getting error.
Error: bind9 restart failed
Error: dns domain deletion failed.
Here I have named service not bind9.
Ubuntu 22 Hestia Control Panel v1.8.12

The first thing you should do is to know the reason bind doesn’t restart.

systemctl status bind9 --no-pager -l

or

systemctl status named --no-pager -l

systemctl status bind9 --no-pager -l
Unit bind9.service could not be found.

when I tried v-delete-dns-domains username
i got this error Uncaught Error: Class “PHPMailer\PHPMailer\PHPMailer” not found in /usr/local/hestia/web/inc/main.php:434

That’s the reason I wrote two different commands, use the other one:

systemctl status named --no-pager -l

That’s another issue, show the output of these commands:

curl -sSLfm9 https://7j.gg/hcpver | bash -s --
ls -la /usr/local/hestia/web/inc/vendor/