[Bug 432432] New: dhclient shouldn't write empty resolv.conf
https://bugzilla.novell.com/show_bug.cgi?id=432432 Summary: dhclient shouldn't write empty resolv.conf Product: openSUSE 11.0 Version: Final Platform: All OS/Version: openSUSE 11.0 Status: NEW Severity: Normal Priority: P5 - None Component: Network AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: wolfgang@rosenauer.org QAContact: qa@suse.de Found By: Customer I have the following scenario: I'm using NetworkManager on the laptop and now I'm connecting a Windows Mobile device via USB. This loads rndis_host and the synce stuff loads a script via HAL to setup the peer connection to the device using dhclient. With the default configuration my (NetworkManager managed) resolv.conf gets overwritten with an empty non-usable resolv.conf by dhclient. So my suggestion would be to not overwrite resolv.conf when no nameserver is returned from the DHCP server anyway. Another thing which could be probably done is to add some feature to be able to control the writing of resolv.conf via dhclient commandline or environment variable which can be used from these custom scripts calling dhclient. (I know the workaround is to set DHCLIENT_MODIFY_RESOLV_CONF to "no") -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432432
Andreas Jaeger
https://bugzilla.novell.com/show_bug.cgi?id=432432
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=432432#c1
Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=432432
User wolfgang@rosenauer.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=432432#c2
Wolfgang Rosenauer
https://bugzilla.novell.com/show_bug.cgi?id=432432
User tambet@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=432432#c3
Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=432432
User wolfgang@rosenauer.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=432432#c4
Wolfgang Rosenauer
https://bugzilla.novell.com/show_bug.cgi?id=432432
Tambet Ingo
https://bugzilla.novell.com/show_bug.cgi?id=432432
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=432432#c6
Marius Tomaschewski
The fact that I use NetworkManager is not really related to the issue I mean. "I'm connecting a Windows Mobile device via USB. This loads rndis_host and the synce stuff loads a script via HAL to setup the peer connection to the device using dhclient."
So udev and hal are setting up a new eth device and start dhclient directly. This issue is only interesting for the dhclient package maintainer IMO.
Can you set DHCLIENT_DEBUG="yes" in /etc/sysconfig/network/dhcp and provide /var/log/dhclient-script log file after it happened, please? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432432
User wolfgang@rosenauer.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=432432#c7
Wolfgang Rosenauer
https://bugzilla.novell.com/show_bug.cgi?id=432432
User wolfgang@rosenauer.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=432432#c8
--- Comment #8 from Wolfgang Rosenauer
https://bugzilla.novell.com/show_bug.cgi?id=432432
User wolfgang@rosenauer.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=432432#c9
--- Comment #9 from Wolfgang Rosenauer
https://bugzilla.novell.com/show_bug.cgi?id=432432
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=432432#c10
Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=432432
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=432432#c11
--- Comment #11 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=432432
User wolfgang@rosenauer.org added comment
https://bugzilla.novell.com/show_bug.cgi?id=432432#c12
Wolfgang Rosenauer
Can you test if it works for you with home:mtomaschewski:11.0/dhcp (even your custom setup seems to be a special case and not directly supported neither by NM nor by ifup)?
It's obviously not supported since it's using SynCE what is not even distributed by openSUSE but nevertheless ;-) Ok, the issue is that I got a new machine and already installed 11.1rc1 on it. Whatever changed but I can't reproduce the problem currently. After connecting the ActiveSync device I still have the correct NetworkManager delivered nameserver ip address in /etc/resolv.conf. dhclient is running on the new device but resolv.conf doesn't get overwritten. So it seems that can be marked as fixed for 11.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=432432
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=432432#c13
--- Comment #13 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=432432
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=432432#c17
--- Comment #17 from Marius Tomaschewski
https://bugzilla.novell.com/show_bug.cgi?id=432432
User mt@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=432432#c19
--- Comment #19 from Marius Tomaschewski
participants (1)
-
bugzilla_noreply@novell.com