Re: NetworkManager overwriting resolv.conf

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

 



Christopher A. Williams wrote:
The only solution I have found so far is to:
1) properly re-create /etc/resolv.conf to what it should be
2) set the immutable flag on it (chattr +i /etc/resolv.conf)
3) just add the following options to /etc/sysconfig/networking/devices/ifcfg-X (the name of your connection)
PEERDNS=no
NM_CONTROLLED=no
If you for instance want eth0 not controlled by NetworkManager (because it is a wired connection with a fixed IP) and wlan0 with NetworkManager, change the second option to yes. Please note, that your DNS settings /etc/resolv.conf will never change now unless you manually change it, also when NetworkManger takes control.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

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

  Powered by Linux