Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Nov 2010 06:51:24 GMT
From:      Pakhom Golynga <pakhom706@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/152188: net/isc-dhcp31-server and net/isc-dhcp41-server: get-lease-hostnames does not work
Message-ID:  <201011130651.oAD6pOpq091895@www.freebsd.org>
Resent-Message-ID: <201011130700.oAD70G9B018361@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011130651.oAD6pOpq091895>