[Bug 544195] New: Both netconfig and NetworkManager generate /etc/resolv.conf
http://bugzilla.novell.com/show_bug.cgi?id=544195 Summary: Both netconfig and NetworkManager generate /etc/resolv.conf Classification: openSUSE Product: openSUSE 11.2 Version: Milestone 8 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: aj@novell.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.3) Gecko/20090909 SUSE/3.5.3-119.3 Firefox/3.5.3 I have: l /etc/resolv.conf* -rw-r--r-- 1 root root 89 2009-10-04 17:18 /etc/resolv.conf -rw-r--r-- 1 root root 837 2009-10-04 17:18 /etc/resolv.conf.netconfig /var/log/messages contains: Oct 4 17:18:46 x61s-aj dns-resolver: ATTENTION: You have modified /etc/resolv.c onf. Leaving it untouched... Oct 4 17:18:46 x61s-aj dns-resolver: You can find my version in /etc/resolv.conf.netconfig IMO there should be only one file. Reproducible: Always -- 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=544195
Andreas Jaeger
http://bugzilla.novell.com/show_bug.cgi?id=544195
User aj@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c1
--- Comment #1 from Andreas Jaeger
http://bugzilla.novell.com/show_bug.cgi?id=544195
User mt@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c2
Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=544195
User tambet@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c3
Tambet Ingo
http://bugzilla.novell.com/show_bug.cgi?id=544195
Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=544195
User mt@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c4
Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=544195
User mt@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c5
--- Comment #5 from Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=544195
User mt@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c6
Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=544195
User tambet@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c7
Tambet Ingo
http://bugzilla.novell.com/show_bug.cgi?id=544195
User rajko@opensuse.org added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c8
Rajko Matovic
http://bugzilla.novell.com/show_bug.cgi?id=544195
User rajko@opensuse.org added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c9
Rajko Matovic
http://bugzilla.novell.com/show_bug.cgi?id=544195
User mt@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c10
--- Comment #10 from Marius Tomaschewski
Problem with loosing user settings can be worked around if netconfig creates backup of resolv.conf before writing new, so that user can combine both. Not a solution, but better then starting from scratch.
This bug was not about loosing user settings because netconfig would overwrite it, but about NM writing the resolv.conf directly without to use netconfig and ignoring the (user) policy for resolv.conf updates. Netconfig does not overwrite any user settings /etc/resolv.conf, there is no work around/backup needed. It generates resolv.conf.netconfig in such cases. Generally, user settings should go to the yast2 network module and then to network/config or NetworkManager GUI to some place where NM stores them. The backup of all sysconfig files is created at /var/adm/backup/sysconfig. Alternatively, the user can set NETCONFIG_DNS_POLICY='' and maintain the resolv.conf and related files himself. -- 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=544195
User delder@novacoast.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c11
Dan Elder
http://bugzilla.novell.com/show_bug.cgi?id=544195
User tambet@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c12
Tambet Ingo
http://bugzilla.novell.com/show_bug.cgi?id=544195
User casualprogrammer@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c13
--- Comment #13 from Casual J. Programmer
http://bugzilla.novell.com/show_bug.cgi?id=544195
User mvidner@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c14
--- Comment #14 from Martin Vidner
http://bugzilla.novell.com/show_bug.cgi?id=544195
User delder@novacoast.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c15
Dan Elder
http://bugzilla.novell.com/show_bug.cgi?id=544195
User binner@kde.org added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c16
Stephan Binner
http://bugzilla.novell.com/show_bug.cgi?id=544195
User casualprogrammer@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c17
--- Comment #17 from Casual J. Programmer
http://bugzilla.novell.com/show_bug.cgi?id=544195
User rajko@opensuse.org added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c18
--- Comment #18 from Rajko Matovic
http://bugzilla.novell.com/show_bug.cgi?id=544195
User tambet@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c19
Tambet Ingo
http://bugzilla.novell.com/show_bug.cgi?id=544195
User mt@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c20
--- Comment #20 from Marius Tomaschewski
(In reply to comment #12)
Marius, the man page for netconfig does not mention resolv.conf.netconfig. How about adding a note like:
"In some cases, netconfig will not overwrite foo.conf and will save the data to foo.conf.netconfig instead. Use netconfig update -f to overwrite foo.conf." (FIXME: would simply "mv foo.conf.netconfig foo.conf" work? If not, why?)
Yes, it should be added to the man page. Yes, basically the "mv foo.conf.netconfig foo.conf" just works. Problem is to know which "foo" :-) In case of DNS, this could be the /etc/resolv.conf or /etc/resolv.conf and /etc/named.d/forwarders.conf. So "netconfig update -f" is the better. The feature #306274 (comment #4) will allow to select/filter the operation scope by (module name or) module group basis: netconfig update -m dns -f will "make the mv" for all currently required files without to touch e.g. NIS where the user maybe wants to keep his manual adjustments. -- 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=544195
User mt@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=544195#c21
Marius Tomaschewski
http://bugzilla.novell.com/show_bug.cgi?id=544195
http://bugzilla.novell.com/show_bug.cgi?id=544195#c22
andrea florio
http://bugzilla.novell.com/show_bug.cgi?id=544195
http://bugzilla.novell.com/show_bug.cgi?id=544195#c
yang xiaoyu
http://bugzilla.novell.com/show_bug.cgi?id=544195
http://bugzilla.novell.com/show_bug.cgi?id=544195#c24
Li Bin
http://bugzilla.novell.com/show_bug.cgi?id=544195
http://bugzilla.novell.com/show_bug.cgi?id=544195#c25
Li Bin
http://bugzilla.novell.com/show_bug.cgi?id=544195
http://bugzilla.novell.com/show_bug.cgi?id=544195#c26
--- Comment #26 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com