-
Notifications
You must be signed in to change notification settings - Fork 1
Getting PowerDNS (PDNS) to boot on Ubuntu 18.04
You have to edit the following file at the bash shell do the following:
$ nano /lib/systemd/system/pdns.service
The file has to read as follows:~
[Unit]
Description=PowerDNS Authoritative Server
Documentation=man:pdns_server(1) man:pdns_control(1)
Documentation=https://doc.powerdns.com
Wants=http://network-online.target
After=http://network-online.target mysqld.service
[Service]
Type=forking
ExecStart=/usr/sbin/pdns_server --daemon
ExecReload=/usr/bin/pdns_control reload
ExecStop=/usr/bin/pdns_control quit
Restart=on-failure
RestartSec=1
StartLimitInterval=0
PrivateTmp=true
PrivateDevices=true
CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_CHOWN CAP_SYS_CHROOT
NoNewPrivileges=true
ProtectSystem=full
ProtectHome=true
#RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6