In previous openSUSE versions I was using WICD as network manager. I upgraded my openSUSE to 11.4 and resolved give a try to the NetworkManager. I can get network connection, but the dhcp doesn’t update the /etc/resolv.conf, so I can’t navigate because the dns isn’t set.
I tried to reinstall all related packages (dhcp, dns and networkmanager) without success.
If I run dhcpcd the resolv.conf get updated, but dhclient doesn’t do the same.
It seems that’s a dhclient script issues, but I don’t know how to test.
Please try to rename the file /etc/resolv.conf or remove it whatsoever. The other solution is to remove a line from the file which says to not remove it
Put the following line back in the file to see if that helps:
Please remove (at least) this line when you modify the file!
Good luck.
On 04/22/2011 07:36 PM, tony hild wrote:
>
> I tried that too, but only with dhcpcd I can update resolv.conf.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
Apr 23 08:01:41 opensuse nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/autofs' exited with error status 1.
Apr 23 08:01:42 opensuse nm-dispatcher.action: Script '/etc/NetworkManager/dispatcher.d/nfs' exited with error status 2
but it does not prevent my NetworkManager from modifying the /etc/resolv.conf file accordingly. If I were You I would do this. Create two NetowrkManager profiles A and B with different DNS settings. Then I would rename or delete the file /etc/resolv.conf and connect with profile A (check DNS) and then connect with profile B and check the DNS as well.
Also please check what You have got configured here :
> cat /etc/sysconfig/network/config | grep DNS
# Defines the DNS merge policy as documented in netconfig(8) manual page.
# Set to "" to disable DNS configuration.
NETCONFIG_DNS_POLICY="auto"
# Defines the name of the DNS forwarder that has to be configured.
NETCONFIG_DNS_FORWARDER="resolver"
# List of DNS domain names used for host-name lookup.
#NETCONFIG_DNS_STATIC_SEARCHLIST=""
# List of DNS nameserver IP addresses to use for host-name lookup.
#NETCONFIG_DNS_STATIC_SERVERS=""
NETCONFIG_DNS_FORWARDER_FALLBACK="yes"
# Allows to specify a custom DNS service ranking list, that is which
NETCONFIG_DNS_RANKING="auto"
NETCONFIG_DNS_STATIC_SEARCHLIST="local"
NETCONFIG_DNS_STATIC_SERVERS=""
I set NETCONFIG_DNS_POLICY to auto and resolv.conf get updated. I think that WICD has changed this option, and when I back to NetworkManager this option remain. One thing I noticed was that you can not change this setting by Yast when NetworkManager is enabled.