[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 <gwyllion@ace.ulyssis.org> wrote:
>
> > I just add this to my /etc/dhclient.conf:
> > prepend domain-name-servers 193.190.253.36, 193.190.253.75,
> > 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
> dhclient.conf
>
> 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.
Jeff
Jeff Ross
Open Vistas Networking, Inc.
http://www.openvistas.net