[Pdns-users] Custom compiled PDNS 2.9.10, not listening?

Mike Benoit mikeb at netnation.com
Wed Sep 3 22:15:25 UTC 2003


I tried stracing pdns_server when I started it manually, and it seemed
to be reading the correct config file:

open("/etc/powerdns/pdns.conf", O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=6741, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40014000
read(4, "# Added by install script\n#modul"..., 4096) = 4096
read(4, "essing\tDo out of zone additional"..., 4096) = 2645
read(4, "", 4096)                       = 0
close(4)                                = 0

[root at ns1 sbin]# ./pdns_server --daemon=no --local-address=127.0.0.1
--local-port=999 --launch=gmysql
Sep 03 15:13:18 This is a standalone pdns
Sep 03 15:13:18 Listening on controlsocket in
'/var/run/pdns.controlsocket'
Sep 03 15:13:18 UDP server bound to 127.0.0.1:999
Sep 03 15:13:18 TCP server bound to 127.0.0.1:999
Sep 03 15:13:18 PowerDNS 2.9.10 (C) 2001-2003 PowerDNS.COM BV (Sep  2
2003, 11:05:58) starting up
Sep 03 15:13:18 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.
Sep 03 15:13:18 Creating backend connection for TCP

Hrmm, if I specify all those options on the command line, it seems to be
working, very strange. 


On Wed, 2003-09-03 at 14:55, bert hubert wrote:
> On Wed, Sep 03, 2003 at 02:15:04PM -0700, Mike Benoit wrote:
> > In an attempt to stop the Signal 11 errors, I tried compiling PDNS
> > myself with the gmysql backend. It compiled fine, but when I went to
> > start it, this is what I see in the logs:
> 
> It may read /usr/local/etc/pdns.conf instead of /etc/powerdns.conf.
> 
> > Looks all good, except that it refuses to listen on any IP address, even
> > though I specify them in /etc/powerdns/pdns.conf. The RPM versions all
> > work fine with the same config file (except for the Sig11's of course),
> > did I miss something during the compile?
> 
> Can you check what pdns_server --daemon=no --local-address=1.2.3.4 does?
-- 
Best Regards,
 
Mike Benoit
NetNation Communications Inc.
Systems Engineer
Tel: 604-684-6892 or 888-983-6600
 ---------------------------------------
 
 Disclaimer: Opinions expressed here are my own and not 
 necessarily those of my employer



More information about the Pdns-users mailing list