<html><head><meta http-equiv="content-type" content="text/html; charset=us-ascii"><style>body { line-height: 1.5; }body { font-size: 10.5pt; font-family: 'Microsoft YaHei UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>hello,</div><div><br></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""> I try to use bind as pdns backend, and when start with "service pdns start", it reports:</span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><br></span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">Nov 08 16:29:01 Unable to open /etc/pdns/pdns.conf<br>Nov 08 16:29:01 Reading random entropy from '/dev/urandom'<br>Nov 08 16:29:01 Loading '/usr/lib64/pdns/libbindbackend.so'<br>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<br>Nov 08 16:29:01 DNSBackend unable to load module in bind<br></span></span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><br></span></span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""> 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":</span></span></span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><br></span></span></span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""># yum list |grep pdns<br>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"<br>Trying other mirror.<br>pdns.x86_64 4.0.1-1pdns.el6 @powerdns-auth-40<br>pdns-backend-mysql.x86_64 4.0.1-1pdns.el6 @powerdns-auth-40<br>fpdns.noarch 0.9.3-1.el6.rf easemob-rpmforge<br>pcp-pmda-pdns.x86_64 3.10.9-6.el6 base <br>pdns-backend-geo.x86_64 3.3.3-1.el6 easemob-epel <br>pdns-backend-ldap.x86_64 4.0.1-1pdns.el6 powerdns-auth-40<br>pdns-backend-lua.x86_64 4.0.1-1pdns.el6 powerdns-auth-40<br>pdns-backend-pipe.x86_64 4.0.1-1pdns.el6 powerdns-auth-40<br>pdns-backend-postgresql.x86_64 4.0.1-1pdns.el6 powerdns-auth-40<br>pdns-backend-remote.x86_64 4.0.1-1pdns.el6 powerdns-auth-40<br>pdns-backend-sqlite.x86_64 4.0.1-1pdns.el6 powerdns-auth-40<br>pdns-recursor.x86_64 3.7.3-1.el6 easemob-epel <br>pdns-tools.x86_64 4.0.1-1pdns.el6 powerdns-auth-40<br></span></span></span></span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><br></span></span></span></span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""> Then I try to get a </span></span></span></span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">libbindbackend.so through compliing the source code(</span><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"></span><a href="https://github.com/PowerDNS/pdns/tree/rel/auth-4.0.x" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" font-weight:="" normal;="" font-style:="" normal;'="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;" class="">https://github.com/PowerDNS/pdns/tree/rel/auth-4.0.x</a><span microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgb(255,="" 255,="" 255);="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"> branch: rel/auth-4.0.x</span><span style="background-color: window; font-size: 10.5pt; line-height: 1.5;">) on another server, then complie the code, and get the lib file </span><span microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"><span microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="" style="font-family: '';"><span microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="" style="font-family: '';"><span microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="" style="font-family: '';"> </span></span></span></span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">libbindbackend.so:</span></div><div> </div><div><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"> ../pdns-rel-auth-4.0.x/modules/bindbackend/.libs/libbindbackend.so</span></div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgb(255,="" 255,="" 255);="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""></span>
<div> </div><div> I copy this file to my target server's directory: "<span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">cp libbindbackend.so /usr/lib64/pdns/." then run "</span><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">pdns_server --daemon=no --guardian=no --control-console --loglevel=9 --launch=bind --slave=yes --local-ipv6=</span><span style="background-color: window; font-family: ''; font-size: 10.5pt; line-height: 1.5;">", it reports:</span></div><div><span style="background-color: window; font-family: ''; font-size: 10.5pt; line-height: 1.5;"><br></span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgb(255,="" 255,="" 255);="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">Nov 08 19:23:24 Reading random entropy from '/dev/urandom'<br>Nov 08 19:23:24 Loading '/usr/lib64/pdns/libbindbackend.so'<br>Nov 08 19:23:24 [bind2backend] This is the bind backend version unknown (Nov 8 2016 19:01:53) reporting<br>Nov 08 19:23:24 This is a standalone pdns<br>Nov 08 19:23:24 UDP server bound to 0.0.0.0:53<br>Nov 08 19:23:24 TCP server bound to 0.0.0.0:53<br>Nov 08 19:23:24 PowerDNS Authoritative Server 4.0.1 (C) 2001-2016 PowerDNS.COM BV<br>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@71602bffa439.<br>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.<br>Nov 08 19:23:24 Set effective group id to 495<br>Nov 08 19:23:24 Listening for HTTP requests on 127.0.0.1:8081<br>Nov 08 19:23:24 Set effective user id to 494<br>Nov 08 19:23:24 DNS Proxy launched, local port 56702, remote 10.x.x.x:53<br>Nov 08 19:23:24 Master/slave communicator launching<br>Nov 08 19:23:24 Creating backend connection for TCP<br>Nov 08 19:23:24 Caught an exception instantiating a backend, cleaning up<br>Nov 08 19:23:24 Caught an exception instantiating a backend, cleaning up<br>Nov 08 19:23:24 Exiting because communicator thread died with STL error: bind-dnssec-db requires building PowerDNS with SQLite3<br>% Exiting because of STL error: bind-dnssec-db requires building PowerDNS with SQLite3<br>Nov 08 19:23:24 Exiting because of STL error: bind-dnssec-db requires building PowerDNS with SQLite3<br></span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgb(255,="" 255,="" 255);="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'=""><br></span></div><div>I don't know why :) Is any help?</div><div><br></div><div>version:</div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">system: CentOS release 6.5 (Final)</span></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">PDNS: </span><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">PowerDNS Authoritative Server 4.0.1 (C) 2001-2016 PowerDNS.COM BV (used yum install pdns)</span></div><div>libbindbackend.so version: compiled by <span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">rel/auth-4.0.x branch, </span><a href="https://github.com/PowerDNS/pdns/tree/rel/auth-4.0.x" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" font-weight:="" normal;="" font-style:="" normal;'="" class="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">https://github.com/PowerDNS/pdns/tree/rel/auth-4.0.x</a><span microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgb(255,="" 255,="" 255);="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"> </span></div><div><span microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgb(255,="" 255,="" 255);="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"><br></span></div><div><span microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgb(255,="" 255,="" 255);="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="" style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">pdns.conf:</span></div><div><br></div><div><span style="font-family: "" microsoft="" yahei="" ui'";="" font-size:="" 14px;="" color:="" rgb(0,="" 0,="" 0);="" background-color:="" rgba(0,="" font-weight:="" normal;="" font-style:="" normal;text-decoration:="" none;'="">launch=bind<br>security-poll-suffix=<br>bind-dnssec-db=/etc/pdns/bind/dnssec.db<br>bind-config=/etc/pdns/bind/named.conf<br>bind-check-interval=600<br></span></div><div>.....</div><div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>zhaoyf@easemob.com</div></div></span></div>
</body></html>