tags 635322 confirmed
thanks

Hello Vincent,
this bug recently started happening to me as well, and even after normal
shutdown-bootup cycles: my hostname is changed to "dhcppc0" (I suspect that's
what my router sends), and X applications seem not to work anymore. Thus I'm
also confirming its severity.

On Tue, 26 Jul 2011 08:17:59 +0200, Vincent Lefevre wrote:

> It may be a bug in wicd or isc-dhcp-client, or both. I'm not sure.
> In the default dhclient configuration and the one provided by wicd,
> there is "request [...] host-name [...]".

I can't find this. WICD provides a "send host-name $_HOSTNAME", hostname which
you can set in the UI.

That option is in /etc/dhcp/dhclient.conf , which is provided by
isc-dhcp-client.

> I'm not sure what it's supposed to do, but changing the hostname is certainly
> a bug.

Agreed.

> The dhcp-options(5) man page says:
> 
>    option host-name string;
> 
>      This  option  specifies  the name of the client.  The name may or may
>      not be qualified with the local domain name (it is preferable to  use
>      the domain-name option to specify the domain name).  See RFC 1035 for
>      character set restrictions.  This option is only honored by dhclient-
>      script(8) if the hostname for the client machine is not set.
>                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
> (is option different from request?).

The *request* statement is described in dhclient.conf(5).

I suspect the problem is that dhclient doesn't consider the config file
provided by WICD anymore: this way we would have a "request host-name", but no
"send host-name" -- thus effectively requesting a new hostname to the DHCP
server.

I'll investigate this better.

David

-- 
 . ''`.   Debian developer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://deb.li/dapal
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174

Attachment: signature.asc
Description: PGP signature

Reply via email to