Hi Matthijs - thanks for the fast response!
On Apr 7, 2005, at 11:15 AM, Matthijs Mohlmann wrote:
Hi Jack,
On Thu, 2005-04-07 at 09:45 -0700, [EMAIL PROTECTED] wrote:Package: pdns Version: 2.9.17-9 Severity: wishlist Tags: patch
It'd be wizard if, like bind, pdns updated resolvconf's list of available nameservers -
The patch you provided will add "nameserver 127.0.0.1" to the resolv.conf configuration ? In the patch you provide you do a: resolvconf -d lo (Why not -a ? that adds the interface to the existing set of nameservers)
The patches are stolen from the bind init script - they should add "nameserver 127.0.0.1" to /etc/resolv.conf - if managed by Thomas Hood's resolvconf package - when pdns starts, & remove it when pdns stops - hence "-a" in start & "-d" in stop.
The order of nameservers in /etc/reslov.conf is configurable in resolvconf, but by default, local nameservers are queried before nameservers on ethernet interfaces, then ppp interfaces etc. I'm no resolvconf sage, but it's really handy - I use pdns when it's running, but dns doesn't break when it's not & I'm not always viming /etc/resolv.conf
Probably better is to add the interface where pdns-server is listening on but that's side note
Totally - I thought about this, specially since you probably run pdns_recursor on another port - but getting 127.0.0.1 into resolvconf is a useful start.
pdns_recursor prints the local port when it starts, so one could sed & pass it to resolvconf - but not so for the local address or pdns_server at all.
Alternatively, one could sed /etc/powerdns/{pdns.conf,recursor.conf}, but this'd require more intelligence from the init script - & if you're not using 127.0.0.1, you probably want to configure /etc/resolv.conf manually anyway.
What if someone doesn't want that?
Don't install resolvconf - or configure resolvconf appropriately.
(Probably i can add a configuration parameter to /etc/default/pdns-server)It's a nice one eh :)
Many thanks for maintaining this awesome alternative dns server!
Totally : ) The geobackend has me pretty revved - too bad pdns doesn't support dynamic dns updates yet : \
Jack
Regards,
Matthijs Mohlmann
Cheers!
Jack
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]