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

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

 



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


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

  Powered by Linux