FC7 dhcp resolv.conf

Ralph Alvy ralph at ralphalvy.com
Sat Aug 11 00:26:54 UTC 2007


Manuel Arostegui Ramirez wrote:

> 2007/8/10, Ralph Alvy <ralph at ralphalvy.com>:
>> I don't see where in Fedora Core 7 I can set dhcp to not
>> overwrite /etc/resolv.conf. Where is the dhcp configuration file in
>> Fedora Core 7?
>>
> 
> You can also define that on your
> /etc/sysconfig/network-scripts/ifcfg-ethX configuration file, with the
> line:
> PEERDNS=no
> 
> Manuel.

My /etc/sysconfig/network-scripts/ifcfg-eth0 looks like this:

        DEVICE=eth0
        BOOTPROTO=dhcp
        HWADDR=00:14:85:8C:9D:5D
        ONBOOT=yes
        PEERDNS=no

With that, dhcp still overwrites my /etc/resolv.conf




More information about the fedora-list mailing list