PDA

View Full Version : PowerDNS


alexander
11-15-2004, 07:30 PM
Hi,

Has anyone tried to install PowerDNS on WBEL? Everytime I try to start /etc/rc.d/init.d/pdns monitor I have an segmenation error:

[root@localhost]# /etc/rc.d/init.d/pdns monitor
/etc/rc.d/init.d/pdns: line 175: 27680 Segmentation fault $pdns_server --daemon=no --guardian=no --control-console --loglevel=9

I have tried several RPMs but no luck. Any clues? :(

carl
11-16-2004, 01:44 AM
Hi,

When we did the RimuHosting DNS servers running PDNS, we found it was best to go from source. Here is a quick HOWTO I wrote during the install that might help you:


# Add pdns user
useradd pdns
passwd -l pdns

# Grab the source tar ball (change to the latest version)
wget http://downloads.powerdns.com/releases/pdns-2.9.16.tar.gz

# Unpack and cd into directory
tar xvzf pdns-2.9.16.tar.gz
cd pdns-2.9.16

# Install flex, g++ and zlib-devel if it's not already
apt-get install flex gcc-c++ zlib-devel

# Configure, this example is for the MySQL backend, you might need to change it to fit your setup.
./configure --prefix=/usr --sysconfdir=/etc/powerdns --with-modules=gmysql
# If that passed, make
make
# Now install
#make install
# Use checkinstall to create an RPM instead: http://dag.wieers.com/packages/checkinstall/
checkinstall

# Install init script
cp pdns/pdns /etc/init.d/pdns

# mv default config file to proper place
mv /etc/powerdns/pdns-dist.conf /etc/powerdns/pdns.conf

edit config file, and:

find launch, change to:

launch=bind
bind-example-zones

# Start pdns in test mode
/etc/init.d/pdns start

# Querying of server using 'host' should work, eg:
host example.com 127.0.0.1

# Close down test server
/etc/init.d/pdns stop



At this point you have a working PDNS setup, and you just need to add your zones using whichever backend you choose.

- kron

alexander
11-16-2004, 01:09 PM
Excellent, this is what I have been looking for. I did not have gcc-c++ installed and had problems all the time starting pdns/compiling pdns.
Thanks for your help.

2all: I believe checkinstall is what I have been looking for for some time. Quite often there are no RPM packages or source is newer than RPM package. Therefore the benefit of the program is very clear.
http://asic-linux.com.mx/~izto/checkinstall/

alexander
11-16-2004, 01:10 PM
BTW, there is a very useful graphical tool poweradmin, which is kind of GUI for PowerDNS. Quite good, http://www.poweradmin.org