Difference between revisions of "Powerdns Install"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
https://doc.powerdns.com/authoritative/guides/basic-database.html | 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 psql -c "CREATE ROLE pdns WITH SUPERUSER CREATEDB CREATEROLE LOGIN ENCRYPTED PASSWORD 'pdns'" | ||
sudo -i -u postgres createdb -O pdns pdns | sudo -i -u postgres createdb -O pdns pdns | ||
Line 8: | Line 9: | ||
sudo psql -U pdns -W -h 127.0.0.1 pdns < /root/luadns.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/ | 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.d/pdns.local.gpgsql.conf |
Revision as of 00:16, 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