Re: PowerDNS Recursor 3.5-RC5 released!

Peter van Dijk <[email protected]>
Newsgroups gmane.network.dns.powerdns.devel
Message-ID <[email protected]>
Hello Justin,

On Apr 9, 2013, at 1:29 , [email protected] wrote:
> Seems ok (so far) on OSX, with one minor exception.
> 
> The "/etc/powerdns/recursor.conf" location for the config file
> is hardcoded, not allowing overrides.

Second report this week. Tempted to fix it for 3.5 but 'config file location' is a great way to break things for everybody.

> Originally (wrongly) thought it was from the Makefile:
> 
>  CONFIGDIR="/etc/powerdns/"

Yes, this is confusing. Apologies for that.

> But the value being used is the one in config.h, which makes more
> sense in hindsight (ie "embedded in the compiled executable"):

Yes, but the Makefile should take responsibility for passing CONFIGDIR on.

>  #define SYSCONFDIR "/etc/powerdns/"
> 
> In the short term it's easy to fix for OSX packaging by just
> patching config.h on the fly.
> 
> Not sure what the "proper" fix is though, so someone can adjust
> the location without needing to patch things before compiling. ;)
> 
> Anyone have suggestions?  Make adding a sed to the mock
> "configure" script. ?


Can you try:
- compiling without the sed
then
- see if using --config-dir in your startup script helps?

Kind regards,
-- 
Peter van Dijk
Netherlabs Computer Consulting BV - http://www.netherlabs.nl/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.