Re: [CFR] reflect resolv.conf update to running application
From: Brooks Davis (brooks_at_one-eyed-alien.net)
Date: 08/27/05
- Previous message: Michael Bushkov: "Re: splitting off RPC and friends"
- In reply to: Matthew N. Dodd: "Re: [CFR] reflect resolv.conf update to running application"
- Next in thread: Matthew N. Dodd: "Re: [CFR] reflect resolv.conf update to running application"
- Maybe reply: Sergey Babkin: "Re: Re: [CFR] reflect resolv.conf update to running application"
- Reply: Matthew N. Dodd: "Re: [CFR] reflect resolv.conf update to running application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 27 Aug 2005 10:06:00 -0700 To: "Matthew N. Dodd" <mdodd@freebsd.org>
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
- application/pgp-signature attachment: stored
- Previous message: Michael Bushkov: "Re: splitting off RPC and friends"
- In reply to: Matthew N. Dodd: "Re: [CFR] reflect resolv.conf update to running application"
- Next in thread: Matthew N. Dodd: "Re: [CFR] reflect resolv.conf update to running application"
- Maybe reply: Sergey Babkin: "Re: Re: [CFR] reflect resolv.conf update to running application"
- Reply: Matthew N. Dodd: "Re: [CFR] reflect resolv.conf update to running application"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]