[Pdns-users] Pdns Remote backend crash

Aleksey Chudov aleksey.chudov at gmail.com
Sat Mar 2 14:14:16 UTC 2013


On 02.03.2013 13:18, Aki Tuomi wrote:
> I'll have a look at this, can you please file a bug report at
> http://wiki.powerdns.com/trac

Suggest to make sure it is really a bug and not my fault.

> Can you show me your remotebackend script, maybe?

Does not matter. I can reproduce the problem with yours 
http://cmouse.desteem.org/remote.txt

> I tried with pdns-3.2 and svn head, and was unable to reproduce your problem.

Below is the exact commands of how I can reproduce the problem on my 
clean Debian virtual machine

# Upgrade the system

aptitude update
aptitude full-upgrade


# Build and install PowerDNS

aptitude install build-essential libboost-program-options-dev 
libboost-serialization-dev liblua5.1-0-dev zlib1g-dev
cd /usr/src/
wget http://downloads.powerdns.com/releases/pdns-3.2.tar.gz
tar -xzf pdns-3.2.tar.gz
cd pdns-3.2/
CFLAGS="-g -O3" CXXFLAGS="-g -O3" ./configure --prefix=/usr/local/pdns 
--disable-shared --enable-static --enable-static-boost 
--enable-static-binaries --enable-pdns_server --disable-recursor 
--with-modules="pipe remote" --with-dynmodules=""
make
make install


# Install Remote backend script

aptitude install ruby rubygems libjson-ruby
wget http://cmouse.desteem.org/remote.txt -O /usr/local/pdns/etc/remote.rb
chmod +x /usr/local/pdns/etc/remote.rb


# Start and test PowerDNS

/usr/sbin/groupadd -r pdns
/usr/sbin/useradd -g pdns -s /bin/false -r -c "PowerDNS daemon" -d 
/var/run/pdns pdns

/usr/local/pdns/sbin/pdns_server --daemon --guardian=yes --cache-ttl=0 
--distributor-threads=7 --launch=remote --local-ipv6= 
--log-dns-details=yes --log-failed-updates=yes --loglevel=4 
--query-cache-ttl=0 --query-local-address6= --setgid=pdns --setuid=pdns 
--socket-dir=/var/run/pdns --version-string=anonymous 
--remote-connection-string=pipe:command=/usr/local/pdns/etc/remote.rb

dig @localhost xxx.example.com. A


# Build and install dnsperf

aptitude install libbind-dev libkrb5-dev libssl-dev libcap-dev libxml2-dev
cd /usr/src/
wget 
ftp://ftp.nominum.com/pub/nominum/dnsperf/1.0.1.0/dnsperf-src-1.0.1.0-1.tar.gz
tar -xzf dnsperf-src-1.0.1.0-1.tar.gz
cd dnsperf-src-1.0.1.0-1/
./configure --prefix=/usr/local/dnsperf
make
make install


# Start performance test

LC_ALL=C egrep '^[A-Za-z]+$' /usr/share/dict/american-english | awk '{ 
print $1 ".example.com A" }' > /usr/local/dnsperf/dnsperf.in
/usr/local/dnsperf/bin/dnsperf -d /usr/local/dnsperf/dnsperf.in -s 
localhost -f inet -l 300


# PowerDNS crash :(


Regards,
Aleksey



More information about the Pdns-users mailing list