tag 443871 - wontfix
thanks

> El Mon, Sep 24, 2007 at 08:54:38PM +0200, Pierre Habouzit va escriure:
> > On Mon, Sep 24, 2007 at 06:08:35PM +0000, Sergio Talens-Oliag wrote:
> > > I want to use resolconf with pdnsd and be able to bind to an interface
> > > different than the loopback one, but the current scripts hardcode the
> > > 127.0.0.1 address.
> > > 
> > > Attached you will find a patch that tries to read the server_ip value 
> > > from the
> > > pdnsd.conf file and uses it when available; if it can't find the value 
> > > falls
> > > back to use the loopback address.
> > 
> >   This is way too brittle, for me to accept this patch (as there could
> > be multiple server_ip lines, quoted ones, whatever). What you need to
> > plug pdnsd into resolvconf is located under /etc, hence won't be
> > modified through upgrades (conffiles). You can do whatever you want with
> > those.

  Though I've found a non brittle way:

  pdnsd-ctl status|sed -ne '/^Global:$/,/^Server.*:$/s/.*Server ip.*: 
\(.*\)$/\1/p'

  This will never generate silent failures, and we can use that even
with setups using "interface = eth0" in pdnsd.conf.

  Next upload will contain a kludge based on that I guess.
-- 
·O·  Pierre Habouzit
··O                                                [EMAIL PROTECTED]
OOO                                                http://www.madism.org

Attachment: pgpqWPv34mYGC.pgp
Description: PGP signature

Reply via email to