Your message dated Sat, 18 Feb 2012 15:36:11 +0100
with message-id <[email protected]>
and subject line Re: Bug#609851: summary
has caused the Debian Bug report #609851,
regarding isc-dhcp-client: changed hostname
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
609851: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=609851
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: isc-dhcp-client
Version: 4.1.1-P1-17
Severity: important
Tags: upstream
I am not sure if this is the right package against report this, but anyway I
will tell what happened to me.
I joined a wi-fi network using wicd, and it automatically started dhcp client
to obtain an IP address. The problem was that the dhcp had changed my hostname
as well.
As a consequence, i was no longer able to start kde applications, because they
were unable to connect to my display (they use the local hostname i suppose).
I've also tried with iceweasel obtaining the same result.
salvo@lalala:~$ kcalc
No protocol specified
kcalc: cannot connect to X server :0
salvo@lalala:~$ iceweasel
No protocol specified
No protocol specified
Error: cannot open display: :0
To be fair, i am not entirely sure in which package the problem lies, i hope
you can reassign it if i was wrong in reporting here.
Regards
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.38.8-anfitea (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages isc-dhcp-client depends on:
ii debianutils 4.0.2 Miscellaneous utilities specific t
ii iproute 20110629-1 networking and traffic control too
ii isc-dhcp-common 4.1.1-P1-17 common files used by all the isc-d
ii libc6 2.13-10 Embedded GNU C Library: Shared lib
isc-dhcp-client recommends no packages.
Versions of packages isc-dhcp-client suggests:
pn avahi-autoipd <none> (no description available)
pn resolvconf <none> (no description available)
-- Configuration Files:
/etc/dhcp/dhclient.conf [Errno 2] File o directory non esistente:
u'/etc/dhcp/dhclient.conf'
-- no debconf information
--- End Message ---
--- Begin Message ---
Version: 4.2.2-2
On Sun, Dec 4, 2011 at 00:00:06 +0100, Helmut Grohne wrote:
> This is a summary for those attempting to squash rc bugs.
>
> As of 4.2.2-1 /sbin/dhclient-script implements a set_hostname function
> that unconditionally updates the host name if request host-name is set
> in /etc/dhcp/dhclient.conf which is the default. This means that in a
> default setup of dhcp any dhcp server can change the hostname. It is
> known that this break (among other things) X11. It also contradicts the
> documentation (man dhcp-options) "This option is only honored by
> dhclient-script(8) if the hostname for the client machine is not set."
>
That seems fixed (at least to some extent) in 4.2.2-2:
if [ -z "$current_hostname" ] ||
[ "$current_hostname" = '(none)' ] ||
[ "$current_hostname" = 'localhost' ] ||
[ "$current_hostname" = "$old_host_name" ]; then
if [ "$new_host_name" != "$old_host_name" ]; then
hostname "$new_host_name"
fi
fi
I.e. if the current host name doesn't match the previous one from dhcp
then don't change it.
Cheers,
Julien
signature.asc
Description: Digital signature
--- End Message ---