Re: RedHat DHCP overwriting resolv.conf

Matthew Hiller (matthew.hiller@yale.edu)
Thu, 22 Apr 1999 19:01:40 -0400 (EDT)

Fuh? I sent that this morning.

On Thu, 22 Apr 1999, Matthew Hiller wrote:

> Chad and I had an e-mail exchange about this earlier this year --
> in the pre-Linux list days -- essentially, (on RH 5.1 at least), you just
> need to hack up /etc/sysconfig/network-scripts/ifdhcpc-done a little bit.
>
> Comment out the following lines:
>
> #if [ -f /etc/dhcpc/resolv.conf ]; then
> # cp /etc/dhcpc/resolv.conf /etc
> #fi
>
> Note that the file (here at laest) is actually overwritten -
> there's no symlink involved.
>
> And, if you have a vanity domain name, you just need to add some
> lines to the end of the file to be sure it's set correctly, which'll be
> something along the lines of:
>
> export HOSTNAME=foo.br.yale.edu
> hostname foo.br.yale.edu
>
> Matt, who actually hard-codes his IP address so that booting takes less
> time on those rare occasions when he ever does reboot nowadays
>

Matt