If MySQL Password Mismatch:
- Get the correct password from /usr/local/CyberCP/CyberCP/settings.py
- Update it in /etc/powerdns/pdns.conf (gmysql-password line)
Permanent Fix: We’ll add PowerDNS restart to the upgrade script in the next release.
Let me know which error you see in the logs, and I can provide more specific guidance.
# netstat -tlnp | grep 3306
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 718329/mariadbd
# ls -la /etc/powerdns/pdns.conf
-rwxr-xr-x 1 root root 14644 Jun 29 10:26 /etc/powerdns/pdns.conf
# grep pdns /var/log/syslog | tail -20
Jul 1 10:46:02 srv5976184519 systemd[1]: pdns.service: Main process exited, code=exited, status=1/FAILURE
Jul 1 10:46:02 srv5976184519 systemd[1]: pdns.service: Failed with result 'exit-code'.
Jul 1 10:46:04 srv5976184519 systemd[1]: pdns.service: Scheduled restart job, restart counter is at 63674.
Jul 1 10:46:04 srv5976184519 pdns_server[729014]: Loading '/usr/lib/x86_64-linux-gnu/pdns/libgmysqlbackend.so'
Jul 1 10:46:04 srv5976184519 pdns_server[729014]: This is a standalone pdns
Jul 1 10:46:04 srv5976184519 pdns_server[729014]: Listening on controlsocket in '/run/pdns/pdns.controlsocket'
Jul 1 10:46:04 srv5976184519 pdns_server[729014]: WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
Jul 1 10:46:04 srv5976184519 pdns_server[729014]: Unable to bind UDP socket to '0.0.0.0:53': Address already in use
Jul 1 10:46:04 srv5976184519 pdns_server[729014]: Fatal error: Unable to bind to UDP socket
Jul 1 10:46:04 srv5976184519 systemd[1]: pdns.service: Main process exited, code=exited, status=1/FAILURE
Jul 1 10:46:04 srv5976184519 systemd[1]: pdns.service: Failed with result 'exit-code'.
Jul 1 10:46:05 srv5976184519 systemd[1]: pdns.service: Scheduled restart job, restart counter is at 63675.
Jul 1 10:46:05 srv5976184519 pdns_server[729022]: Loading '/usr/lib/x86_64-linux-gnu/pdns/libgmysqlbackend.so'
Jul 1 10:46:05 srv5976184519 pdns_server[729022]: This is a standalone pdns
Jul 1 10:46:05 srv5976184519 pdns_server[729022]: Listening on controlsocket in '/run/pdns/pdns.controlsocket'
Jul 1 10:46:05 srv5976184519 pdns_server[729022]: WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.
Jul 1 10:46:05 srv5976184519 pdns_server[729022]: Unable to bind UDP socket to '0.0.0.0:53': Address already in use
Jul 1 10:46:05 srv5976184519 pdns_server[729022]: Fatal error: Unable to bind to UDP socket
Jul 1 10:46:05 srv5976184519 systemd[1]: pdns.service: Main process exited, code=exited, status=1/FAILURE
Jul 1 10:46:05 srv5976184519 systemd[1]: pdns.service: Failed with result 'exit-code'.
# sudo chown root:pdns /etc/powerdns/pdns.conf
# sudo chmod 640 /etc/powerdns/pdns.conf
# sudo systemctl start pdns
Job for pdns.service failed because the control process exited with error code.
See "systemctl status pdns.service" and "journalctl -xeu pdns.service" for details.
# sudo -u pdns /usr/sbin/pdns_server --daemon=no --guardian=no
Jul 01 10:47:16 Loading '/usr/lib/x86_64-linux-gnu/pdns/libgmysqlbackend.so'
Jul 01 10:47:16 This is a standalone pdns
Jul 01 10:47:16 Unable to create socket directory (/var/run/pdns/) and it does not exist yet
also the mysql password is correct.
i update to new release too but the problem still there.
# journalctl -u pdns -n 50
Jul 01 11:08:05 srv5976184519 systemd[1]: Stopped PowerDNS Authoritative Server.
Jul 01 11:08:05 srv5976184519 systemd[1]: Starting PowerDNS Authoritative Server...
Jul 01 11:08:05 srv5976184519 pdns_server[57186]: Loading '/usr/lib/x86_64-linux-gnu/pdns/libgmysqlbackend.so'
Jul 01 11:08:05 srv5976184519 pdns_server[57186]: This is a standalone pdns
Jul 01 11:08:05 srv5976184519 pdns_server[57186]: Listening on controlsocket in '/run/pdns/pdns.controlsocket'
Jul 01 11:08:05 srv5976184519 pdns_server[57186]: WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed i>
Jul 01 11:08:05 srv5976184519 pdns_server[57186]: Unable to bind UDP socket to '0.0.0.0:53': Address already in use
Jul 01 11:08:05 srv5976184519 pdns_server[57186]: Fatal error: Unable to bind to UDP socket
Jul 01 11:08:05 srv5976184519 systemd[1]: pdns.service: Main process exited, code=exited, status=1/FAILURE
Jul 01 11:08:05 srv5976184519 systemd[1]: pdns.service: Failed with result 'exit-code'.
Jul 01 11:08:05 srv5976184519 systemd[1]: Failed to start PowerDNS Authoritative Server.
Jul 01 11:08:06 srv5976184519 systemd[1]: pdns.service: Scheduled restart job, restart counter is at 443.
Jul 01 11:08:06 srv5976184519 systemd[1]: Stopped PowerDNS Authoritative Server.
Jul 01 11:08:06 srv5976184519 systemd[1]: Starting PowerDNS Authoritative Server...
Jul 01 11:08:06 srv5976184519 pdns_server[57189]: Loading '/usr/lib/x86_64-linux-gnu/pdns/libgmysqlbackend.so'
Jul 01 11:08:06 srv5976184519 pdns_server[57189]: This is a standalone pdns
Jul 01 11:08:06 srv5976184519 pdns_server[57189]: Listening on controlsocket in '/run/pdns/pdns.controlsocket'
Jul 01 11:08:06 srv5976184519 pdns_server[57189]: WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed i>
Jul 01 11:08:06 srv5976184519 pdns_server[57189]: Unable to bind UDP socket to '0.0.0.0:53': Address already in use
Jul 01 11:08:06 srv5976184519 pdns_server[57189]: Fatal error: Unable to bind to UDP socket
Jul 01 11:08:06 srv5976184519 systemd[1]: pdns.service: Main process exited, code=exited, status=1/FAILURE
Jul 01 11:08:06 srv5976184519 systemd[1]: pdns.service: Failed with result 'exit-code'.
Jul 01 11:08:06 srv5976184519 systemd[1]: Failed to start PowerDNS Authoritative Server.
Jul 01 11:08:07 srv5976184519 systemd[1]: pdns.service: Scheduled restart job, restart counter is at 444.
Jul 01 11:08:07 srv5976184519 systemd[1]: Stopped PowerDNS Authoritative Server.
Jul 01 11:08:07 srv5976184519 systemd[1]: Starting PowerDNS Authoritative Server...
Jul 01 11:08:08 srv5976184519 pdns_server[57192]: Loading '/usr/lib/x86_64-linux-gnu/pdns/libgmysqlbackend.so'
Jul 01 11:08:08 srv5976184519 pdns_server[57192]: This is a standalone pdns
Jul 01 11:08:08 srv5976184519 pdns_server[57192]: Listening on controlsocket in '/run/pdns/pdns.controlsocket'
Jul 01 11:08:08 srv5976184519 pdns_server[57192]: WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed i>
Jul 01 11:08:08 srv5976184519 pdns_server[57192]: Unable to bind UDP socket to '0.0.0.0:53': Address already in use
Jul 01 11:08:08 srv5976184519 pdns_server[57192]: Fatal error: Unable to bind to UDP socket
Jul 01 11:08:08 srv5976184519 systemd[1]: pdns.service: Main process exited, code=exited, status=1/FAILURE
Jul 01 11:08:08 srv5976184519 systemd[1]: pdns.service: Failed with result 'exit-code'.
lines 1-34
Some system updates re-enable systemd-resolved, which conflicts with PowerDNS. CyberPanel’s installer usually disables it, but system updates can revert this change.
Permanent Solution
Add this to prevent systemd-resolved from starting:
Mask the service permanently
sudo systemctl mask systemd-resolved
Try the first solution - disabling systemd-resolved should immediately resolve your issue since PowerDNS needs port 53 to function as your DNS server.