Preventing resolv.conf from being recreated

Alex mysqlstudent at gmail.com
Tue Jan 15 06:22:05 UTC 2013


Hi,

>> How is this file being recreated?
>>
>> # Generated by NetworkManager
>> search inside.mynetwork.com mynetwork.com
>> nameserver 68.XXX.YYY.44
>>
>> So frustrating.
>>
>
> Add
>
> PEERDNS=no
>
> into your ifcfg-XXXX   file in /etc/sysconfig/network-scripts
>
> I assume you already have DNS1=, DNS2= entries....

Okay, I've added that, but I'm very surprised that would be necessary.
I don't recall ever having to include that. I've also included
NM_CONTROLLED=no and BOOTPROTO=static, yet it seems to get the search
and domain fields from dhcp, and possibly the nameserver.

Thanks again,
Alex


More information about the users mailing list