Skip to content

Instantly share code, notes, and snippets.

@maietta
Last active April 22, 2019 14:49
Show Gist options
  • Save maietta/66da4191bec0cb63ff391137048fc383 to your computer and use it in GitHub Desktop.
Save maietta/66da4191bec0cb63ff391137048fc383 to your computer and use it in GitHub Desktop.
PowerDNS on Ubuntu 18.04+
sudo systemctl disable systemd-resolved
sudo systemctl stop systemd-resolved
sudo ls -lh /etc/resolv.conf
sudo rm /etc/resolv.conf
sudo echo "nameserver 1.1.1.1" > /etc/resolv.conf
sudo apt-get update
sudo apt-get install pdns-server pdns-backend-mysql
nano /etc/powerdns/pdns.d/pdns.local.gmysql.conf
launch+=gmysql
gmysql-host=xxx.xxx.xxx.xxx
gmysql-user=webservers_dns
gmysql-dbname=webservers_dns
gmysql-password=secret
gmysql-dnssec=yes
sudo systemctl restart pdns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment