CyberHosting

Power DNS Does Not Work.

I'm using this code as the solution to the same problem I have;
pdns_server --config-dir = / etc / pdns /

but after a while the power dns shuts down again.

Comments

  • hennaboy said:

    Update: If you have recently updated or have had yum / apt update pdns then you may now discover that pdns is running under its own user pdns

    change the owner of the pdns.conf file to pdns and it should start/restart the service.

  • Hi

    i have same problem after upgrade just a momen ago
    here the output of status

    [root@javanehslp etc]# systemctl status pdns.service
    ● pdns.service - PowerDNS Authoritative Server
    Loaded: loaded (/usr/lib/systemd/system/pdns.service; enabled; vendor preset: disabled)
    Active: activating (auto-restart) (Result: exit-code) since Jum 2019-10-04 01:12:34 UTC; 393ms ago
    Docs: man:pdns_server(1)
    man:pdns_control(1)
    https://doc.powerdns.com
    Process: 20524 ExecStart=/usr/sbin/pdns_server --guardian=no --daemon=no --disable-syslog --log-timestamp=no --write-pid=no (code=exited, status=218/CAPABILITIES)
    Main PID: 20524 (code=exited, status=218/CAPABILITIES)

    Okt 04 01:12:34 javanehslp.com systemd[1]: pdns.service: main process exited, code=exited, status=218/CAPABILITIES
    Okt 04 01:12:34 javanehslp.com systemd[1]: Failed to start PowerDNS Authoritative Server.
    Okt 04 01:12:34 javanehslp.com systemd[1]: Unit pdns.service entered failed state.
    Okt 04 01:12:34 javanehslp.com systemd[1]: pdns.service failed.

    here the permission file and folder

    [root@javanehslp etc]# ls -l |grep pdns
    drwxr-xr-x 2 pdns pdns 4096 Okt 4 00:53 pdns
    [root@javanehslp etc]# ls -l pdns
    total 36
    -rw------- 1 pdns pdns 15680 Jul 31 2018 pdns.conf
    -rw------- 1 pdns pdns 17232 Okt 3 14:13 pdns.conf.rpmnew
    [root@javanehslp etc]#

    i can not find the detail log.
  • Can you try using these permissions and then restart it?
    chown root:root /etc/pdns/pdns.conf
    chmod 644 /etc/pdns/pdns.conf

    See this thread for reference.
    https://forums.cyberpanel.net/discussion/1868/suddenly-power-dns-and-pureftpd-stopped#latest
Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!