Bind9 does not work on OpenVZ 7 VPS

I am using OpenVZ 7 VPS, I have several VPS obtained from several companies.

Bind9 does not work when Hestiacp is installed on those VPS. Press the start button next to the bind but it does not work

I encountered this error in Ubuntu 20.04 and Debain 11.
Debain 10 does not have this bug and works fine. This has been a problem for months

See screenshots


3
3

Give a solution to this

Thank you

OpenVZ is really old, I would suggest to something more modern like kvm.

Beside your issue, cropped error logs arent usefull. I would suggest to check /var/log/bind (or similar) for any reason, why bind doesnt start. Maybe there are also informations in /var/log/syslog.

OpenVZ is “only” 6 years old and openVZ 9 is currently in Experimental phase…

Check if something has changed

Reopend the issue on Github. It looks like some thing has changed regarding OpenVZ…

Hello. I tested this problem and find a solution. The problem is not directly caused by hestiacp,but by the bind9 installation.
A necessary configuration file is apparently not created.
/lib/systemd/system/bind9.service
I found the solution thanks to this link. Issue - Bind9 (DNS) Not starting debian 9 | Plesk Forum
These were my steps.
1.- I did a clean installation of Ubuntu 22.04
2.- Install bind9. Did not work
3.- Create the file with the content exposed in the link and restart bind9.
4.- Bind9 started working without problem
5.- Install hestiacp without bind9
6.- I registered the bind9 service in hestiacp to support it.

I guess installing hestiacp directly and creating the file would also work, but I didn’t feel like reformatting jejejeje.

I hope this post is helpful for developers and they can solve this.