[Pdns-users] pdns and libmysqlclient.so of MySQL 4.0.12

Markus Gebert pdns-user at gebert.net
Thu Apr 10 16:35:15 UTC 2003


Hi there

I have a problem after upgrading from MySQL 3.23.56 to 4.0.12. Due to
the changes in libmysqlclient.so I've recompiled pdns that seems to be
dynamically linked against that library. After having done that, I
restarted pdns, which seemed to start at first sight, but didn't
respond anymore. Monitor/standalone still works fine, but the problem
occurs when running as daemon and/or with guardian. Look at this:


(standalone)

[root at server1 root]# pdns_server --daemon=no --guardian=no --loglevel=9
Apr 10 18:17:53 This is a standalone pdns
Apr 10 18:17:53 Listening on controlsocket in '/var/run/pdns.controlsocket'
Apr 10 18:17:53 Opened file '/usr/local/etc/pdns.conf' for configuration
[...]
Apr 10 18:17:53 About to create 15 backend threads
Apr 10 18:17:53 gmysql Connection succesful
[...]
Apr 10 18:17:53 gmysql Connection succesful
Apr 10 18:17:54 Done launching threads, ready to distribute questions


(no daemon / with guardian)

[root at server1 root]# pdns_server --daemon=no --guardian=yes --loglevel=9
Apr 10 18:19:11 Listening on controlsocket in '/var/run/pdns.controlsocket'
Apr 10 18:19:11 Guardian is launching an instance
[nothing happens]


(daemon / with guardian)

[root at server1 root]# pdns_server --daemon=yes --guardian=yes --loglevel=9
[root at server1 root]# tail /var/log/messages
[... (other log stuff)]
Apr 10 18:20:57 server1 pdns[20004]: Listening on controlsocket in '/var/run/pdns.controlsocket'
[nothing happens]


(daemon / no guardian)

[root at server1 root]# killall -TERM pdns_server
[root at server1 root]# pdns_server --daemon=yes --guardian=no --loglevel=9
[root at server1 root]# tail -n 11 /var/log/messages
Apr 10 18:25:20 server1 pdns[20863]: This is a standalone pdns
Apr 10 18:25:20 server1 pdns[20863]: Listening on controlsocket in '/var/run/pdns.controlsocket'
Apr 10 18:25:20 server1 pdns[20863]: Opened file '/usr/local/etc/pdns.conf' for configuration
Apr 10 18:25:20 server1 pdns[20863]: It is advised to bind to explicit addresses with the --local-address option
Apr 10 18:25:20 server1 pdns[20863]: UDP server bound to 0.0.0.0:53
Apr 10 18:25:20 server1 pdns[20863]: TCP server bound to 0.0.0.0:53
Apr 10 18:25:20 server1 pdns[20863]: PowerDNS 2.9.7 (C) 2001-2003 PowerDNS.COM BV (Apr 10 2003, 17:39:06) starting up
Apr 10 18:25:20 server1 pdns[20863]: 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.
Apr 10 18:25:20 server1 pdns[20863]: Set effective group id to 25
Apr 10 18:25:20 server1 pdns[20863]: Set effective user id to 25
Apr 10 18:25:20 server1 pdns[20863]: DNS Proxy launched, local port 56580, remote 127.0.0.1:54
[nothing happens]


I guess, the new mysql library causes this, but I'm not sure... why
does it work in standalone mode then? pdns static 2.8 from
www.powerdns.com works without problem... I guess mysql is statically
linked in that case.

Any ideas?


Markus




More information about the Pdns-users mailing list