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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
-- 
Paul Howarth <paul@xxxxxxxxxxxx>


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux