ports/152188: net/isc-dhcp31-server and net/isc-dhcp41-server: get-lease-hostnames does not work
Pakhom Golynga
pakhom706 at gmail.com
Sat Nov 13 07:00:19 UTC 2010
>Number: 152188
>Category: ports
>Synopsis: net/isc-dhcp31-server and net/isc-dhcp41-server: get-lease-hostnames does not work
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Nov 13 07:00:16 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Pakhom Golynga
>Release: FreeBSD 9.0-CURRENT
>Organization:
>Environment:
FreeBSD x1.tdc 9.0-CURRENT FreeBSD 9.0-CURRENT #1: Wed Feb 3 16:29:16 MSK 2010 root at x1.tdc:/usr/obj/usr/src/sys/T1 sparc64
>Description:
get-lease-hostnames is supposed to lookup the DNS name and supply that as a
hostname to the client. This does not work.
>How-To-Repeat:
1. Install net/isc-dhcpd31-server or net/isc-dhcpd41-server
2. Configure dhcpd to use option get-lease-hostnames
3. Start dhcpd
>Fix:
Please check a patch for net/isc-dhcpd41-server.
I think changes from this patch applicable for net/isc-dhcpd31-server.
Patch attached with submission follows:
--- 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,
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list