[Pdns-users] PowerDNS and Different Configuration File

Php Coderator phpcoderator at gmail.com
Thu Jun 23 19:33:11 UTC 2011


2011/6/23 bert hubert <bert.hubert at netherlabs.nl>

> On Thu, Jun 23, 2011 at 09:12:34PM +0300, Php Coderator wrote:
> > Hello all!
> >
> > I have compiled latest stable version of PowerDNS and trying to run it
> with
> > gmysql extension. When I start it with the (modified) default
> configuration
> > file (which is under /usr/local/etc), everything is ok. However, when I
> use
> > a different configuration file (But exact same copy of the first one)
> using
> > --config-dir command line switch it raise an error:
>
> Are you 100%  sure it is reading your file in /etc/pdns? Can you strace?
> Or check ls -ulart on the configuration file.
>
>        Bert
>

I am actually using different directory from /etc/pdns, but the problem is
the same for /etc/pdns. Here is the part of strace output:

...
open("/home/system/config/dns/pdns/pdns.conf", O_RDONLY|O_LARGEFILE) = 4
read(4, "# first line of the config file"..., 8191) = 8066
...
# 20 lines later, propably after forking
getppid()                               = 9420
time(NULL)                              = 1308847527
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=2721, ...}) = 0
write(2, "Jun 23 19:45:27 ", 16)        = 16
write(2, "Unable to launch, no backends co"..., 53) = 53
...
exit_group(99)

By the way, I am using CentOS 5.3, kernel 2.6.18
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/pdns-users/attachments/20110623/4b47e0d5/attachment-0001.html>


More information about the Pdns-users mailing list