etc/resolv.conf gets overwritten with blank file upon boot.

Nat Gross natgross.rentalsystems at verizon.net
Tue Mar 8 21:38:27 UTC 2005


Paul Howarth wrote:

>On Tue, 2005-03-08 at 14:01 -0500, Nat Gross wrote:
>  
>
>>>Go to /etc/sysconfig/network-scripts and edit the script which sets on
>>>your interface. There shouldn't be any line with DHCP, just comment
>>>them or remove them.
>>> 
>>>
>>>      
>>>
>>Hmm... I am not that well versed with scripting bash. Also, are these 
>>scripts automatically generated? Should I not rather goto the source 
>>that causes the script be written? What happens if I turn dhcp on again 
>>in the future?
>>    
>>
>
>Try this:
>$ fgrep BOOTPROTO /etc/sysconfig/network-scripts/ifcfg-*
>
>If any of the resulting output (which might be empty) mentions DHCP then
>edit the referenced file and change
>
>BOOTPROTO=dhcp
>
>to
>
>BOOTPROTO=static
>
>Paul.
>  
>
On both machines, BOOTPROTO is already set to static. (It happens on 
both FC3 machines.)

Thanks.
-nat




More information about the fedora-list mailing list