[Pdns-users] bind as backend problem

zhaoyf at easemob.com zhaoyf at easemob.com
Tue Nov 8 11:32:29 UTC 2016


hello,

       I try to use bind as pdns backend, and when start with  "service pdns start", it reports:

Nov 08 16:29:01 Unable to open /etc/pdns/pdns.conf
Nov 08 16:29:01 Reading random entropy from '/dev/urandom'
Nov 08 16:29:01 Loading '/usr/lib64/pdns/libbindbackend.so'
Nov 08 16:29:01 Unable to load module '/usr/lib64/pdns/libbindbackend.so': /usr/lib64/pdns/libbindbackend.so: cannot open shared object file: No such file or directory
Nov 08 16:29:01 DNSBackend unable to load module in bind

       I thought it may be "yum install pdns-backend-bind" just like "yum install pdns-backend-mysql(it works with gmysql as backend)", and I failed to find bind resource in "yum list":

# yum list |grep pdns
http://repo.powerdns.com/centos/x86_64/6/auth-40/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 500 Unable to connect"
Trying other mirror.
pdns.x86_64                            4.0.1-1pdns.el6          @powerdns-auth-40
pdns-backend-mysql.x86_64              4.0.1-1pdns.el6          @powerdns-auth-40
fpdns.noarch                           0.9.3-1.el6.rf           easemob-rpmforge
pcp-pmda-pdns.x86_64                   3.10.9-6.el6             base            
pdns-backend-geo.x86_64                3.3.3-1.el6              easemob-epel    
pdns-backend-ldap.x86_64               4.0.1-1pdns.el6          powerdns-auth-40
pdns-backend-lua.x86_64                4.0.1-1pdns.el6          powerdns-auth-40
pdns-backend-pipe.x86_64               4.0.1-1pdns.el6          powerdns-auth-40
pdns-backend-postgresql.x86_64         4.0.1-1pdns.el6          powerdns-auth-40
pdns-backend-remote.x86_64             4.0.1-1pdns.el6          powerdns-auth-40
pdns-backend-sqlite.x86_64             4.0.1-1pdns.el6          powerdns-auth-40
pdns-recursor.x86_64                   3.7.3-1.el6              easemob-epel    
pdns-tools.x86_64                      4.0.1-1pdns.el6          powerdns-auth-40

    Then I try to get a libbindbackend.so through compliing the source code(https://github.com/PowerDNS/pdns/tree/rel/auth-4.0.x branch: rel/auth-4.0.x) on another server, then complie the code,  and get the lib file  libbindbackend.so:
    
    ../pdns-rel-auth-4.0.x/modules/bindbackend/.libs/libbindbackend.so
  
    I copy this file to my target server's directory:  "cp libbindbackend.so /usr/lib64/pdns/." then run "pdns_server --daemon=no --guardian=no --control-console --loglevel=9 --launch=bind --slave=yes --local-ipv6=", it reports:

Nov 08 19:23:24 Reading random entropy from '/dev/urandom'
Nov 08 19:23:24 Loading '/usr/lib64/pdns/libbindbackend.so'
Nov 08 19:23:24 [bind2backend] This is the bind backend version unknown (Nov  8 2016 19:01:53) reporting
Nov 08 19:23:24 This is a standalone pdns
Nov 08 19:23:24 UDP server bound to 0.0.0.0:53
Nov 08 19:23:24 TCP server bound to 0.0.0.0:53
Nov 08 19:23:24 PowerDNS Authoritative Server 4.0.1 (C) 2001-2016 PowerDNS.COM BV
Nov 08 19:23:24 Using 64-bits mode. Built using gcc 4.9.2 20150212 (Red Hat 4.9.2-6) on Jul 29 2016 15:12:12 by buildbot at 71602bffa439.
Nov 08 19:23:24 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Nov 08 19:23:24 Set effective group id to 495
Nov 08 19:23:24 Listening for HTTP requests on 127.0.0.1:8081
Nov 08 19:23:24 Set effective user id to 494
Nov 08 19:23:24 DNS Proxy launched, local port 56702, remote 10.x.x.x:53
Nov 08 19:23:24 Master/slave communicator launching
Nov 08 19:23:24 Creating backend connection for TCP
Nov 08 19:23:24 Caught an exception instantiating a backend, cleaning up
Nov 08 19:23:24 Caught an exception instantiating a backend, cleaning up
Nov 08 19:23:24 Exiting because communicator thread died with STL error: bind-dnssec-db requires building PowerDNS with SQLite3
% Exiting because of STL error: bind-dnssec-db requires building PowerDNS with SQLite3
Nov 08 19:23:24 Exiting because of STL error: bind-dnssec-db requires building PowerDNS with SQLite3

I don't know why :) Is any help?

version:
system: CentOS release 6.5 (Final)
PDNS: PowerDNS Authoritative Server 4.0.1 (C) 2001-2016 PowerDNS.COM BV  (used yum install pdns)
libbindbackend.so version: compiled by rel/auth-4.0.x branch,  https://github.com/PowerDNS/pdns/tree/rel/auth-4.0.x 

pdns.conf:

launch=bind
security-poll-suffix=
bind-dnssec-db=/etc/pdns/bind/dnssec.db
bind-config=/etc/pdns/bind/named.conf
bind-check-interval=600
.....



zhaoyf at easemob.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20161108/1ee91441/attachment-0001.html>


More information about the Pdns-users mailing list