User Tools

Site Tools


freebsd:powerdns

This is an old revision of the document!


FreeBSD 11 PowerDNS

Install PowerDNS Package

portsnap fetch
portsnap extract
cd /usr/ports/dns/powerdns
make config # select mysql
export BATCH=yes # otherwise you get prompted for a lot of options
make install # this takes a while

Setup MySQL Server

Find installed MySQL client

pkg info | grep mysql | grep client
  • In My case I was using client version 5.6

Install from Port

cd /usr/ports/databases/mysql56-server/
make install

Enable MySQL Server

echo "mysql_enable=\"YES\"" > /etc/rc.conf
service mysql-server start

Set Password

mysqladmin -u root password "CHANGEME"

Setup PowerDNS Database

Create PowerDNS Database

mysql -p # enter password you changed from CHANGEME
create database powerdns; 
quit;
mysql -p powerdns < /usr/local/share/doc/powerdns/schema.mysql.sql # enter password you changed from CHANGEME
freebsd/powerdns.1479499730.txt.gz · Last modified: 2016/11/18 14:08 by tschulz