Bugzilla – Bug 171124
NetworkManager always overwrites resolv.conf
Last modified: 2006-05-04 05:47:07 UTC
I've got a laptop with RC3 that uses NetworkManager but as well runs its own nameserver thus I need to have localhost and a list of my domains in /etc/resolv.conf. I switched off the "update list of nameservers and domains from DHCP" in YaST but NetManager doesn't seem to honor this setting. It's quite annoying to need to fix resolv.conf everytime I plug in an ethernet cable or join a wifi net.
Please attach /etc/sysconfig/network as tarball.
Actually, I just need the result of % grep MODIFY_RESOLV_CONF_DYNAMICALLY /etc/sysconfig/network/config NM _does_ respect that variable.
MODIFY_RESOLV_CONF_DYNAMICALLY was set to "yes" regardless what if I switch it off in YaST -> Network Devices -> Network Cards -> Use NetManager -> Modify -> Hostname&resolver. After manually setting the variable to "no" my resolv.conf is not being overwritten anymore. However there is apparently a bug somewhere in YaST (?) because the variable isn't modified as expected. Reproducible, try yourself.
Moving to yast network module maintainer.
Please, attach the YaST logs files ;-)
*** This bug has been marked as a duplicate of 169858 ***