[CentOS] Unable to edit resolv.conf

Fri Jan 13 15:15:48 UTC 2017
TE Dukes <tdukes at palmettoshopper.com>

-----Original Message-----
From: CentOS [mailto:centos-bounces at centos.org] On Behalf Of Gordon Messmer
Sent: Friday, January 13, 2017 10:10 AM
To: CentOS mailing list
Subject: Re: [CentOS] Unable to edit resolv.conf

On 01/13/2017 04:49 AM, TE Dukes wrote:
> I changed ISPs and need to update name servers in resolv.conf.
> I have Network Manager turned off and when I enable it , eth0 and eth1 
> have no entries.  I enabled it, added the connections, but still no

If you want to use NetworkManager, edit
/etc/NetworkManager/NetworkManager.conf and add "dns=none" in the main


If you don't want to use NetworkManager, then set PEERDNS=no and remove any
DNS1, DNS2, etc settings in /etc/sysconfig/network-scripts/ifcfg-*


I made the change in ifcfg-eth0 and eth1 to PERRDNS=no.

Then I did a really dumb thing -- I did a service network stop instead of

I'm done till I get back home this evening.