El Tue, Sep 25, 2007 at 01:24:26AM +0200, Pierre Habouzit va escriure:
> 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.

Great, that's what I wanted, thanks in advance!

-- 
Sergio Talens-Oliag <[EMAIL PROTECTED]>   <http://people.debian.org/~sto/>
Key fingerprint = 29DF 544F  1BD9 548C  8F15 86EF  6770 052B  B8C1 FA69

Attachment: signature.asc
Description: Digital signature

Reply via email to