On 01/13/2017 05:50 AM, Albert McCann wrote:>> -----Original Message----- >> From: CentOS [mailto:centos-bounces at centos.org] On Behalf Of TE Dukes >> Sent: Friday, January 13, 2017 7:50 AM >> To: 'CentOS mailing list' <centos at centos.org> >> Subject: [CentOS] Unable to edit resolv.conf >> >> I changed ISPs and need to update name servers in resolv.conf. >> >> I have tried nano, gedit, Webmin, system-config-network and it won't allow >> me to make the changes. >> >> 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 changes. > > You haven't done what I've done intentionally, flag /etc/resolv.conf > immutable with "chattr +i /etc/resolv.conf" have you? > > I do this to keep Network Manager and other busybodies from making unwanted > / unneeded changes.I've tried to figure out how to get Network Manager to leave various configuration files alone and just gave up - resorting to cron job running as root every minute fixing them if they have been modified. I wish there was better documentation on how Network Manager is configured because I can't figure out how to get it to behave. My home router - the caching nameserver it uses doesn't enforce DNSSEC and crashes about once a week, requiring a restart. So I just don't use it except for my phone and tablet, and just run unbound on my local machines, but Network Manager keeps trying to use the nameserver assigned by the router DHCP (which is the router) and other than a once a minute cron job, can't figure out how to tell Network Manager to ignore the nameserver setting.
>>> I changed ISPs and need to update name servers in resolv.conf. >>> >>> I have tried nano, gedit, Webmin, system-config-network and it won't allow >>> me to make the changes.Have you tried adding PEERDNS=no to your ifcfg-device file? If that doesn't work, you might be able to use NM_CONTROLLED=no as well. Barry
> -----Original Message----- > From: CentOS [mailto:centos-bounces at centos.org] On Behalf Of Alice Wonder > Sent: Friday, January 13, 2017 8:59 AM > To: centos at centos.org > Subject: Re: [CentOS] Unable to edit resolv.conf > > I've tried to figure out how to get Network Manager to leave various > configuration files alone and just gave up - resorting to cron job > running as root every minute fixing them if they have been modified....> My home router - the caching nameserver it uses doesn't enforce DNSSEC > and crashes about once a week, requiring a restart. So I just don't use > it except for my phone and tablet, and just run unbound on my local > machines, but Network Manager keeps trying to use the nameserver > assigned by the router DHCP (which is the router) and other than a once > a minute cron job, can't figure out how to tell Network Manager to > ignore the nameserver setting.Have you tried setting PEERDNS=no in the /etc/sysconfig/network-scripts/ifcfg-<X> script(s)? I have an ancient note here from 5.x days with the above fix. Al -- He who finds an old key does not require a new one.
On 01/13/2017 07:00 AM, Albert McCann wrote:>> -----Original Message----- >> From: CentOS [mailto:centos-bounces at centos.org] On Behalf Of Alice Wonder >> Sent: Friday, January 13, 2017 8:59 AM >> To: centos at centos.org >> Subject: Re: [CentOS] Unable to edit resolv.conf >> >> I've tried to figure out how to get Network Manager to leave various >> configuration files alone and just gave up - resorting to cron job >> running as root every minute fixing them if they have been modified. > ... >> My home router - the caching nameserver it uses doesn't enforce DNSSEC >> and crashes about once a week, requiring a restart. So I just don't use >> it except for my phone and tablet, and just run unbound on my local >> machines, but Network Manager keeps trying to use the nameserver >> assigned by the router DHCP (which is the router) and other than a once >> a minute cron job, can't figure out how to tell Network Manager to >> ignore the nameserver setting. > > Have you tried setting PEERDNS=no in the > /etc/sysconfig/network-scripts/ifcfg-<X> script(s)? > > I have an ancient note here from 5.x days with the above fix.That might work on my desktop but I don't think it would work on my laptop where it seems to create new network scripts for every wifi network it connects to.
-----Original Message----- From: CentOS [mailto:centos-bounces at centos.org] On Behalf Of Barry Brimer Sent: Friday, January 13, 2017 9:42 AM To: CentOS mailing list Subject: Re: [CentOS] Unable to edit resolv.conf>>> I changed ISPs and need to update name servers in resolv.conf. >>> >>> I have tried nano, gedit, Webmin, system-config-network and it won't >>> allow me to make the changes.Have you tried adding PEERDNS=no to your ifcfg-device file? If that doesn't work, you might be able to use NM_CONTROLLED=no as well. Thanks, Giving it a try now.