From owner-freebsd-questions@FreeBSD.ORG Tue Nov 21 01:43:50 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 30F6616A403 for ; Tue, 21 Nov 2006 01:43:50 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from eskimo.tundraware.com (eskimo.tundraware.com [66.92.130.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0561043D46 for ; Tue, 21 Nov 2006 01:43:29 +0000 (GMT) (envelope-from tundra@tundraware.com) Received: from [192.168.0.2] (viper.tundraware.com [192.168.0.2]) (authenticated bits=0) by eskimo.tundraware.com (8.13.8/8.13.8) with ESMTP id kAL1hgDp077215 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Mon, 20 Nov 2006 19:43:42 -0600 (CST) (envelope-from tundra@tundraware.com) Message-ID: <456259CB.1060002@tundraware.com> Date: Mon, 20 Nov 2006 19:43:39 -0600 From: Tim Daneliuk Organization: TundraWare Inc. User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-tundraware.com-MailScanner-Information: Please contact the ISP for more information X-tundraware.com-MailScanner: Found to be clean X-tundraware.com-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.399, required 1, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-tundraware.com-MailScanner-From: tundra@tundraware.com X-Spam-Status: No Subject: Dynamic Hostname Assignment With dhcpd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: tundra@tundraware.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2006 01:43:50 -0000 I am running isc-dhcp3-server-3.0.4_1 on a FBSD 4.11-stable machine. I have defined a pool of addresses to be used for dhcp address assignment and configured them correctly in DNS. Forwards and reverses resolve properly. All this seems to work just fine. You can plug a host into the network and it will be properly configured for everything *except* the hostname. (At the moment, I am limiting myself to a FBSD 6.1 (PC-BSD) machine for testing, but the issue is known to exist on WinXP and other Unices as well.) After digging around for a couple of hours, I still cannot seem to find the necessary magic. So ... Just how do I get a dhcp configured client to pickup the proper hostname (so that reverses will work properly)? I removed the "hostname=..." statement from /etc/rc.conf and rebooted the client. When I look at the kernel environment (with 'kenv') I see no values beginning with "dhcp...". Do I need to do something in the server configuration? Here is the configuration at the moment: ddns-update-style ad-hoc; option domain-name "foo.com"; option domain-name-servers 192.168.0.22; option routers 192.168.0.1; subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.140 192.168.0.159; } TIA, ---------------------------------------------------------------------------- Tim Daneliuk tundra@tundraware.com PGP Key: http://www.tundraware.com/PGP/