[CFR] reflect resolv.conf update to running application

Brooks Davis brooks at one-eyed-alien.net
Sat Aug 27 17:06:01 GMT 2005


On Fri, Aug 26, 2005 at 10:19:06PM -0400, Matthew N. Dodd wrote:
> On Fri, 26 Aug 2005, Brooks Davis wrote:
> >On Fri, Aug 26, 2005 at 08:29:39PM -0400, Matthew N. Dodd wrote:
> >>I've got modifications to dhclient-script and a Makefile in /etc/namedb/
> >>that implement this behavior.  I'll clean it up for public consumption if
> >>others are interested.
> >
> >Sounds useful to me.
> 
> I've not yet come up with a good way to configure this behavior, other 
> than the bit that turns of the resolv.conf updating (touch 
> /etc/dhclient-no-resolv-conf).
> 
> /var/run/named.forwarders is updated with a Bind named.conf forwarders 
> configuration section containing all DHCP provided nameservers.  The 
> Makefile is placed in /etc/namedb and /etc/namedb/named.conf is moved to 
> /etc/named.conf.in and modified to include the lines:
> 
> 	forward only;
> #include "/var/run/named.forwarders"
> 
> This will cause the nameserver to never perform recursive queries directly 
> but to forward everything to the listed forwarders.
> 
> I'm open to suggestions on where to place the configuration knobs for this 
> functionality.

I'd like to see dhclient-script pull in /etc/rc.conf.  By doing:

. /etc/rc.subr
load_rc_config dhclient-script

-- Brooks

-- 
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529  9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20050827/72a6ce43/attachment.bin


More information about the freebsd-arch mailing list