Difference between revisions of "Powerdns Install"
Jump to navigation
Jump to search
(Created page with "https://www.howtoforge.com/how-to-install-powerdns-admin-on-ubuntu-20-04/") |
|||
Line 1: | Line 1: | ||
https://www.howtoforge.com/how-to-install-powerdns-admin-on-ubuntu-20-04/ | https://www.howtoforge.com/how-to-install-powerdns-admin-on-ubuntu-20-04/ | ||
+ | |||
+ | https://doc.powerdns.com/authoritative/guides/basic-database.html | ||
+ | |||
+ | sudo -i -u postgres psql -c "CREATE ROLE pdns WITH SUPERUSER CREATEDB CREATEROLE LOGIN ENCRYPTED PASSWORD 'pdns'" | ||
+ | sudo -i -u postgres createdb -O pdns pdns | ||
+ | sudo psql -U pdns -W -h 127.0.0.1 pdns < /usr/share/pdns-backend-pgsql/schema/schema.pgsql.sql | ||
+ | sudo psql -U pdns -W -h 127.0.0.1 pdns < /root/luadns.sql | ||
+ | cp -p /usr/share/doc/pdns-backend-pgsql/examples/pdns.local.gpgsql.conf /etc/powerdns/pdns.d/ | ||
+ | |||
+ | |||
+ | /etc/powerdns/pdns.d/pdns.local.gpgsql.conf | ||
+ | ``` | ||
+ | ``` | ||
+ | |||
+ | /etc/powerdns/pdns.conf | ||
+ | ``` | ||
+ | ``` |
Revision as of 00:15, 17 November 2020
https://www.howtoforge.com/how-to-install-powerdns-admin-on-ubuntu-20-04/
https://doc.powerdns.com/authoritative/guides/basic-database.html
sudo -i -u postgres psql -c "CREATE ROLE pdns WITH SUPERUSER CREATEDB CREATEROLE LOGIN ENCRYPTED PASSWORD 'pdns'" sudo -i -u postgres createdb -O pdns pdns sudo psql -U pdns -W -h 127.0.0.1 pdns < /usr/share/pdns-backend-pgsql/schema/schema.pgsql.sql sudo psql -U pdns -W -h 127.0.0.1 pdns < /root/luadns.sql cp -p /usr/share/doc/pdns-backend-pgsql/examples/pdns.local.gpgsql.conf /etc/powerdns/pdns.d/
/etc/powerdns/pdns.d/pdns.local.gpgsql.conf
<br /><pre><br />/etc/powerdns/pdns.conf