From owner-freebsd-questions@FreeBSD.ORG Fri Apr 11 17:10:56 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CDD737B405 for ; Fri, 11 Apr 2003 17:10:56 -0700 (PDT) Received: from catflap.home.slightlystrange.org (pc1-cmbg1-4-cust43.cmbg.cable.ntl.com [62.253.133.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0F3143F93 for ; Fri, 11 Apr 2003 17:10:54 -0700 (PDT) (envelope-from dan@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 3.36 #1) id 1948bW-0005eF-00 for freebsd-questions@freebsd.org; Sat, 12 Apr 2003 01:10:46 +0100 Date: Sat, 12 Apr 2003 01:10:46 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20030412001046.GA21606@catflap.home.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-Scanner: exiscan *1948bW-0005eF-00*MyJ5VC73dBw* (SlightlyStrange.org, Using NOD32 http://www.nod32.com) Subject: Re: Unable to get hostname through DHCP X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: dan@slightlystrange.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Apr 2003 00:10:56 -0000 On Fri, Apr 11, 2003 at 04:35:53PM -0400, Harikesavan Krishnan wrote: > > Hi, > > I have installed FreeBSD in a machine over an NFS. I have enabled the > DHCP options, for my server to assign an IP and a hostname to this m/c. > While this machine picks up the IP address, it doesnt seem to catch > the hostname supplied by the DNS. I have disabled the hostname field in > /etc/rc.conf. > > Could you please help me out with this. Try putting a "require" directive in your /etc/dhclient.conf: interface "xl0" { require host-name; } where you will change "xl0" for the name of the DHCP interface on your machine. Then relaunch dhclient. Check out the dhclient(8), dhclient.conf(5) and dhcp-options(5) man pages for many more config options. HTH Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \