From owner-freebsd-questions@FreeBSD.ORG Mon Jun 11 14:10:31 2007 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 358EB16A400 for ; Mon, 11 Jun 2007 14:10:31 +0000 (UTC) (envelope-from bcook@poughkeepsieschools.org) Received: from a.outbound.bsdwebsolutions.com (a.outbound.bsdwebsolutions.com [64.72.68.2]) by mx1.freebsd.org (Postfix) with ESMTP id 076A713C487 for ; Mon, 11 Jun 2007 14:10:31 +0000 (UTC) (envelope-from bcook@poughkeepsieschools.org) Received: from mail.bsdwebsolutions.com ([64.72.68.15]) by a.outbound.bsdwebsolutions.com with esmtps (TLSv1:AES256-SHA:256) (BSD Web Solutions, Inc.) (envelope-from ) id 1HxkbG-0006nz-3v for freebsd-questions@freebsd.org; Mon, 11 Jun 2007 10:10:30 -0400 Received: from [64.72.66.117] (helo=mail.poughkeepsieschools.org) by mail.bsdwebsolutions.com with esmtps (TLSv1:AES256-SHA:256) (BSD WebSolutions, Inc.) (envelope-from ) id 1HxkbF-000HNY-S5 for freebsd-questions@freebsd.org ; Mon, 11 Jun 2007 10:10:29 -0400 Received: from [10.20.0.10] (port=60807 helo=macpro-pcsd.techcentral.local) by mail.poughkeepsieschools.org with esmtpsa (TLSv1:AES256-SHA:256) (BSD WebSolutions, Inc.) (envelope-from ) id 1HxkbF-000ICn-Lo for freebsd-questions@freebsd.org (authenticated as bcook@poughkeepsieschools.org); Mon, 11 Jun 2007 10:10:29 -0400 X-BSD-Virus-Check: ClamAV 0.90.2/3399 on mail.poughkeepsieschools.org; Mon, 11 Jun 2007 10:10:29 -0400 Message-ID: <466D57D5.4020803@poughkeepsieschools.org> Date: Mon, 11 Jun 2007 10:10:29 -0400 From: "B. Cook" User-Agent: Thunderbird 2.0.0.0 (Macintosh/20070326) MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Confused about dhclient .conf and -script.. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Jun 2007 14:10:31 -0000 I am trying to make a FreeBSD machine that gets a dynamic ip from a pfsense box work the same way as a Windows machine does. After reading way more about isc-dhcpd than I wanted to, I found out that I can customize /etc/dhclient.conf (great). I found a great dhclient.conf but it seemed to do things that I could not get my FreeBSD box(es) to do. So I found out that this config file actually came from a linux box (some ubuntu version) and that it runs a dhclient-script which I then found out that FreeBSD also has.. So I'm closer but not there yet and can not seem to figure out what I am missing. This is my /etc/dhclient.conf : send host-name "$HOSTNAME"; request subnet-mask, broadcast-address, time-offset, routers, domain-name, domain-name-servers, host-name, netbios-name-servers, netbios-scope; timeout 30; script "/sbin/dhclient-script"; the dhclient-script is the stock one (6.2-p5) the linux one had the host-name set to "" after looking at the dhclient-script it looks like I need to use $HOSTNAME. Except when I change the hostname of the box (via hostname -s blahblah.local.domain) and then run dig against the dns server, the name blahblah did not register. Jun 11 09:47:11 pfsense dhcpd: DHCPACK on 192.168.1.13 to 00:b0:d0:a1:8f:17 ($HOSTNAME) via dc0 Jun 11 09:47:13 pfsense dhcpd: DHCPREQUEST for 192.168.1.13 from 00:b0:d0:a1:8f:17 ($HOSTNAME) via dc0 So what am I doing wrong, can I get what I am looking for? doing this: