[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Keeping dhcp from overwriting /etc/resolve.conf
On Thu, 7 Mar 2002, Nick Nauwelaerts wrote:
> On Thu, 7 Mar 2002 05:05:59 +0100 (CET)
> Dries Schellekens <firstname.lastname@example.org> wrote:
> > I just add this to my /etc/dhclient.conf:
> > prepend domain-name-servers 18.104.22.168, 22.214.171.124,
> > 10.0.9.250; The DNS servers dhclient gets, are put behind these DNS
> > servers. You could use supersede instead of prepend.
> And in addition to all of this, you could just use this in your
> send dhcp-lease-time 3600;
> request subnet-mask, broadcast-address, routers;
> // nick
With attbi, at least, this doesn't work, as /etc/resolv.conf is
overwritten with their values anyway.
My suggestion to chmod 444 doesn't work because in /sbin/dhclient-script,
/etc/resolv.conf is first rm'ed and then written.
Nick Holland's suggestion works beautifully.
Thanks to all who chimed in.
Open Vistas Networking, Inc.