resolv.conf changed after reboot

Michael Christian mchristianjr at gmail.com
Thu Feb 9 18:06:49 UTC 2006


chattr +i /etc/resolv.conf will do the trick (provided your using the ext3
filesystem).

PEERDNS=no will keep the dhcp values from being used if you don't want to
make the file immutable.


On 2/9/06, Ed Wilts <ewilts at ewilts.org> wrote:
>
> On Thu, Feb 09, 2006 at 03:34:17PM +0100, David Tonhofer, m-plify S.A.
> wrote:
> > Amazing...there are programs that do rewrite resolv.conf? O_o!
>
> Of course - it's the right thing to do if you're a dhcp client.
>
> # grep resolv /etc/sysconfig/network-scripts/*
>
> If you look at ifup-post, you'll see right near the top how to turn it
> off.
>
> --
> Ed Wilts, RHCE
> Mounds View, MN, USA
> mailto:ewilts at ewilts.org
> Member #1, Red Hat Community Ambassador Program
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request at redhat.com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>



--
Michael S. Christian Jr.



More information about the redhat-list mailing list