[Bug 550706] New: resolv.conf not properly updated
http://bugzilla.novell.com/show_bug.cgi?id=550706
Summary: resolv.conf not properly updated
Classification: openSUSE
Product: openSUSE 11.2
Version: RC 1
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Network
AssignedTo: bnc-team-screening@forge.provo.novell.com
ReportedBy: bwhiteley@novell.com
QAContact: qa@suse.de
Found By: ---
While running my laptop at home, NM sets my nameserver to 10.0.0.254 (from
dhcp) in resolv.conf. This is correct.
I s2ram while at home, then travel to the office. At the office, I insert the
laptop into a docking bay, then resume. Once resumed, resolv.conf looks like
this:
### /etc/resolv.conf file autogenerated by racoon of novell-ipsec-tools!
# Process id: 3146
###
search
http://bugzilla.novell.com/show_bug.cgi?id=550706
zhu rensheng
http://bugzilla.novell.com/show_bug.cgi?id=550706
User tambet@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=550706#c1
Tambet Ingo
http://bugzilla.novell.com/show_bug.cgi?id=550706
User bili@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=550706#c2
Li Bin
http://bugzilla.novell.com/show_bug.cgi?id=550706
User bwhiteley@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=550706#c3
Bart Whiteley
http://bugzilla.novell.com/show_bug.cgi?id=550706
User bili@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=550706#c4
Li Bin
http://bugzilla.novell.com/show_bug.cgi?id=550706
User bwhiteley@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=550706#c5
Bart Whiteley
http://bugzilla.novell.com/show_bug.cgi?id=550706
User tambet@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=550706#c6
--- Comment #6 from Tambet Ingo
I don't have an idea how to resolve this problem in a reasonable way.
Easy, use netconfig to update resolv.conf. It's pretty easy. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=550706
User bili@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=550706#c7
Li Bin
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c8
Paul van Noort
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c9
--- Comment #9 from Tambet Ingo
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c10
Li Bin
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c11
Tambet Ingo
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c12
Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c13
--- Comment #13 from Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c14
--- Comment #14 from Li Bin
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c15
Jiri Bohac
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c16
Bart Whiteley
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c17
--- Comment #17 from Li Bin
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c18
--- Comment #18 from Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c23
--- Comment #23 from Li Bin
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c25
--- Comment #25 from Christian Dengler
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c27
--- Comment #27 from Marius Tomaschewski
Marius,
I build the new sysconfig package with the patch in Comment #18, then install it, it can't modify the DNS with below command when I delete a server(192.168.1.3) from the dnscfg file.
It is exactly as I've described in comment #13 - it works in ifup mode, but: When NetworkManager is in use, only the NetworkManager is allowed to provide settings to netconfig by default (NETCONFIG_DNS_POLICY="auto" means then "STATIC_FALLBACK NetworkManager") and the NetworkManager is responsible to provide the nameservers in desired order. This exclusivity has been requested by the NetworkManager maintainer in order to ensure correct behavior of the NetworkManager. To workaround the limitation in either the NetworkManager, that it does not provide a way for NM plugins to provide settings to NM or in the vpn plugin that it does not provide them to NetworkManager, you can change the default netconfig policy to allow the plugin to provide its settings. The netconfig policy: NETCONFIG_DNS_POLICY='STATIC_FALLBACK NetworkManager *' should do the job, because the vpn settings have higher prio than NM settings -- because of the ranking. You can document this or of course, you can also ask the NetworkManager maintainer to ACK a change the default netconfig policy in NM mode and resolve "auto" as above instead. (In reply to comment #25)
Is there another solution without that feature mentioned in comment #19?
Well, beside of disabling netconfig by policy and manual configuration, there is a hack that the user can do -- change to a policy to: NETCONFIG_DNS_POLICY='STATIC_FALLBACK * NetworkManager' or NETCONFIG_DNS_POLICY='STATIC_FALLBACK eth1 NetworkManager' This will work also without the ranking feature in netconfig, __but__ it will _very_ fast break the NetworkManager (it prefers any another services from any / specified interface, also from e.g. avahi) and is not a workaround that we can use/propose as a general workaround. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c28
--- Comment #28 from Christian Dengler
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c29
--- Comment #29 from Bart Whiteley
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c30
Christian Dengler
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c31
Bart Whiteley
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c32
--- Comment #32 from Marius Tomaschewski
Where can I get fixed packages for 11.2?
There is no package for 11.2, see comment 25. You can install the sle11-sp1 sysconfig + dhcpcd packages and set NETCONFIG_DNS_POLICY='STATIC_FALLBACK NetworkManager *' so the settings from racoon are applied (and because of the ranking pushed to the front of resolv.conf) also in NETWORKMANAGER=yes case as described in comment 27. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c33
Christian Dengler
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c35
Li Bin
http://bugzilla.novell.com/show_bug.cgi?id=550706
http://bugzilla.novell.com/show_bug.cgi?id=550706#c36
--- Comment #36 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com