[Pdns-users] pdns not reading config file

Derrik Pates demon at devrandom.net
Mon Oct 9 15:15:17 UTC 2006


Ante wrote:
> My pdns.conf is located in /usr/local/etc, and it seems like it's not
> reading the config-file.
> 
> For example, in my config file I have
> #################################
> # logfile       Logfile to use
> #
> logfile=/var/log/pdns.log
> 
> But it's logging it to /var/log/syslog instead.
> 
> I tried to start pdns_server with --logfile=/var/log/pdns.log, but it
> didn't work either.
> 
> Any suggestions where I should start looking?

I believe the docs say that the 'logfile' directive doesn't work on UNIX
systems, as it logs via syslog. Your best bet is to set the
'logging-facility' to some number between 0 and 7 (inclusive), and
direct messages for the 'localN' (where N is the 'logging-facility' you
specified) facility to /var/log/pdns.log via syslogd (or syslog-ng or
whatever Slack uses these days).

-- 
Derrik Pates
demon at devrandom.net


More information about the Pdns-users mailing list