Package: dhcp3-server Version: 3.1.1-5 Severity: important
get-lease-hostnames is supposed to lookup the DNS name and supply that as a hostname to the client. This does not happen. I've traced the problem and it seems that i (=DHO_HOST_NAME) in dhcp.c:2605 is a dhcp_universe option, not a server_universe option. This patch fixes the problem. This was previously reported on the dhcp-server mailing list back in 2000, but it doesn't seem anyone picked it up. See also: http://marc.info/?l=dhcp-server&m=97257932431155&w=2 I use this for supplying netboot (clean slate) clients with a hostname. In the dhcp package (2.0pl5-19.5etch2) this worked, but in lenny this package is no longer available. Patch below: --- server/dhcp_orig.c 2008-12-22 14:51:21.000000000 +0100 +++ server/dhcp.c 2008-12-22 14:48:58.000000000 +0100 @@ -2602,7 +2602,7 @@ /* If we don't have a hostname yet, and we've been asked to do a reverse lookup to find the hostname, do it. */ j = SV_GET_LEASE_HOSTNAMES; - if (!lookup_option (&server_universe, state -> options, i) && + if (!lookup_option (&dhcp_universe, state -> options, i) && (evaluate_boolean_option_cache (&ignorep, packet, lease, (struct client_state *)0, packet -> options, state -> options, &lease -> scope, -- System Information: Debian Release: 5.0 APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages dhcp3-server depends on: ii debconf [debconf-2.0] 1.5.24 Debian configuration management sy ii debianutils 2.30 Miscellaneous utilities specific t ii dhcp3-common 3.1.1-5 common files used by all the dhcp3 ii libc6 2.7-16 GNU C Library: Shared libraries ii lsb-base 3.2-20 Linux Standard Base 3.2 init scrip dhcp3-server recommends no packages. Versions of packages dhcp3-server suggests: pn dhcp3-server-ldap <none> (no description available) -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

