Your message dated Thu, 26 May 2011 00:53:09 +0200
with message-id <[email protected]>
and subject line Re: [pkg-dhcp-devel] Bug#627825: isc-dhcp-client: Please
provide a possibility keep the hostname untouched
has caused the Debian Bug report #627825,
regarding isc-dhcp-client: Please provide a possibility keep the hostname
untouched
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.)
--
627825: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=627825
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: isc-dhcp-client
Version: 4.1.1-P1-17
Severity: wishlist
Since the inclusion of the patches in http://bugs.debian.org/609408,
dhclient always resets the hostname:
> - fix setting of hostname in dhclient-script
I can't remember for how long this didn't work as it was expected to
(probably since the move of /bin/sh from bash to dash), but I find the
"fixed" behaviour very annoying, especially if a hostname is already set
via /etc/hostname or I explicitly configured in /etc/dhcp/dhclient.conf
to send a hostname.
I also don't understand why the hostname is currently always reset to
"anonhost-0263" on this machine as this isn't the hostname in the PTR
record of the IP I got via DHCP. It's also no existing other hostname in
the DNS domain I am currently in. I first suspected avahi-autoipd, but
deinstalling it didn't change this behaviour.
I currently use an exit-hook which resets the hostname to the one I
configured in /etc/hostname, but this is quite ugly as the hostname then
is changed twice on every lease renewal.
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (990, 'unstable'), (600, 'stable'), (500, 'testing'), (400,
'oldstable'), (110, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.39-1-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages isc-dhcp-client depends on:
ii debianutils 4 Miscellaneous utilities specific t
ii iproute 20110315-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-4 Embedded GNU C Library: Shared lib
isc-dhcp-client recommends no packages.
Versions of packages isc-dhcp-client suggests:
ii avahi-autoipd 0.6.30-3 Avahi IPv4LL network address confi
pn resolvconf <none> (no description available)
-- Configuration Files:
/etc/dhcp/dhclient.conf changed:
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
send host-name "nemo";
prepend domain-search "6.deuxchevaux.org";
prepend domain-search "ethz.ch";
prepend domain-search "deuxchevaux.org";
prepend domain-search "noone.org";
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, domain-search, host-name,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers;
-- no debconf information
--- End Message ---
--- Begin Message ---
Hi Andrew,
Andrew Pollock wrote:
> > I also don't understand why the hostname is currently always reset to
> > "anonhost-0263" on this machine as this isn't the hostname in the PTR
> > record of the IP I got via DHCP. It's also no existing other hostname in
> > the DNS domain I am currently in. I first suspected avahi-autoipd, but
> > deinstalling it didn't change this behaviour.
>
> Look at your lease file. Is this what your DHCP server is handing out?
Indeed, thanks for the pointer. Embarrassingly this is a DHCP server I
administrate. (But I haven't set it up initially and never noticed
those host strange names in the generated parts of the config. :-)
> > I currently use an exit-hook which resets the hostname to the one I
> > configured in /etc/hostname, but this is quite ugly as the hostname then
> > is changed twice on every lease renewal.
>
> If you don't request the host-name option in your dhclient.conf, you should
> get what you want.
Meh, you're right -- also my fault. I just looked at
/sbin/dhclient-script and found no way where setting the hostname
could be disabled. Didn't think of the obvious thing here either.
Thanks for your help and sorry for the noise. :-)
Regards, Axel
--
,''`. | Axel Beckert <[email protected]>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
`- | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
--- End Message ---