Force NetworkManager to overwrite resolv.conf

I’m having some trouble with my networkmanager on openSuse 11.2. I want it to get the DNS Server from DHCP, but it notices that I had another process modify it (dhcpcd to be exact) and it just won’t overwrite it, resulting in an out of date DNS server to be used.

Any ideas?

cxd wrote:

> I’m having some trouble with my networkmanager on openSuse 11.2. I want
> it to get the DNS Server from DHCP, but it notices that I had another
> process modify it (dhcpcd to be exact) and it just won’t overwrite it,
> resulting in an out of date DNS server to be used.
>
> Any ideas?

If you are obtaining the data from a dhcp server, all the required data to
setup the network adapter should be “automatically” acquired by the client
(ip, netmask, gateway and dns servers).

Can you please explain a bit what is your current situation? There shouldn’t
be any user interaction with networkmanager at all.

Greetings,


Camaleón

I have a similar problem.

When I use vpnc to VPN into a remote network and forget to vpnc-disconnect before shutdown. The resolv.conf is not restored to pre vpnc values.

So when I start the computer after a while I have to force “netconfig -f update” to get dhcp provided name servers.