Comment 3 for bug 586794

Revision history for this message
Kalle Valo (kvalo) wrote :

I checked the dhcp client sources (dhcp-client 3.1.3-2ubuntu3) and I didn't find anything related to setting dhcppc0 (or similar) hostname. So I suspect dhcp server provides the hostname in the dhcp offer and connman currently sets that as the hostname without any checks of whatsoever.

I think this part needs improvement. In some cases it makes sense to change the hostname, but in most of cases the hostname should not be changed at all. Also the fact that connman does not set the search list in resolv.conf might affect here.

I created a test package of connman which does not set the hostname at all:

https://launchpad.net/~kvalo/+archive/ppa/+files/connman_0.53+dfsg-0ubuntu0.10.04.1~ind1~bug586794-1_amd64.deb
https://launchpad.net/~kvalo/+archive/ppa/+files/connman_0.53+dfsg-0ubuntu0.10.04.1~ind1~bug586794-1_i386.deb

Please test and provide feedback.