From owner-freebsd-questions@FreeBSD.ORG Sun May 10 06:15:17 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2D884106566B for ; Sun, 10 May 2009 06:15:17 +0000 (UTC) (envelope-from Pieter.Donche@ua.ac.be) Received: from macos.cmi.ua.ac.be (macos.cmi.ua.ac.be [143.129.75.1]) by mx1.freebsd.org (Postfix) with ESMTP id CF7118FC15 for ; Sun, 10 May 2009 06:15:16 +0000 (UTC) (envelope-from Pieter.Donche@ua.ac.be) Received: from macos.cmi.ua.ac.be (localhost [127.0.0.1]) by macos.cmi.ua.ac.be (8.14.2/8.14.2) with ESMTP id n4A6F6kv097539; Sun, 10 May 2009 08:15:06 +0200 (CEST) (envelope-from Pieter.Donche@ua.ac.be) Received: from localhost (pdon@localhost) by macos.cmi.ua.ac.be (8.14.2/8.14.2/Submit) with ESMTP id n4A6F3TV097536; Sun, 10 May 2009 08:15:04 +0200 (CEST) (envelope-from Pieter.Donche@ua.ac.be) X-Authentication-Warning: macos.cmi.ua.ac.be: pdon owned process doing -bs Date: Sun, 10 May 2009 08:15:03 +0200 (CEST) From: Pieter Donche X-X-Sender: pdon@macos.cmi.ua.ac.be To: Mel Flynn In-Reply-To: <200905092313.45418.mel.flynn+fbsd.questions@mailing.thruhere.net> Message-ID: References: <6.0.0.22.2.20090508064144.026c0fe0@mail.computinginnovations.com> <200905092313.45418.mel.flynn+fbsd.questions@mailing.thruhere.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-questions@freebsd.org, Derek Ragona Subject: Re: isc-dhcpd server, HOSTNAME X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Pieter Donche List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 May 2009 06:15:17 -0000 On Sat, 9 May 2009, Mel Flynn wrote: > On Saturday 09 May 2009 15:09:45 Pieter Donche wrote: > >> case DHCP server DHCP client HOSTNAME env. var. >> >> 1 isc-dhcp30-server FreeBSD7-i386 not set >> on FreeBSD-amd64 >> 2 isc-dhcp30-server SuSE Linux 10.3 set >> on FreeBSD-amd64 >> >> 3 some DHCP server FreeBSD7-i386 set >> on unkown serverOS >> 4 some DHCP server SuSE Linux 10.3 set >> on unkown serverOS > > Judging from this, you have a hostname set in /etc/rc.conf on freebsd 7 client > and/or dhcpd isn't configured to send one as it receives one from the client > and perhaps you have dynamic DNS configured? There is no hostname= declaration in /etc/rc.conf in that FreeBSD7 dhcp client. My dhcpd.conf contains mostly statically defined addresses (over a 100) e.g. host somehostname { hardware ethernet aa:bb:cc:dd:ee:ff; fixed-address AAA.BBB.CCC.DDD; } and one set of 6 dynamically assigned addresses. We want regular users to always get the same IP address based on the MAC address of their system, the pool of 6 is for visitors for one or a few days that we do allow not to register their MAC address. The freebsd7 client is one of the 100+ statically assigned ones, but I might have done a try for the dynamic assignment with this PC (by taking it temporarily out of /usr/local/etc/dhcpd.conf, restart dhcpd, try, then put it back in, restart dhcpd. In fact in /var/db/dhcpd/dhcpd.conf I see I do have an entry lease AAA.BBB.CCC.DDD { starts 4 2009/05/07 12:49:13; ends 4 2009/05/07 13:19:16; tstp 4 2009/05/07 13:19:16; binding state free; hardware ethernet aa.bb.cc.dd.ee.ff; uid "\001\000\013\333S>\025"; } AAA.BBB.CCC.DDD being one of the pool of 6 and the ethernet adddress that of the freebsd client. I see that's "free'd" already (max lease time is 12 hours) and I tried back with that entry again as a statically defined one. Or does this dhcpd.lease entry still have an impact ??? The man of dhcpd.leases says "In order to prevent the lease database from growing without bound, the file is rewritten from time to time." Can one do such a "rewrite" oneself, how ? would that help? On the other hand the AAA.BBB.CCC.DDD IP address does have a hostname specified in the DNS server (somewhere in our campus) (and that DNS server can be queried from the freebsd client via nslookup or host command and it returns the correct hostname). So even in dynamic assignment, shouldn't HOSTNAME been set with that hostname from DNS? > > If that's not the case, then you should add some debugging to /sbin/dhclient- > script in the check_hostname function. > > -- > Mel >