Date: Sat, 12 Apr 2003 01:10:46 +0100 From: Daniel Bye <dan@slightlystrange.org> To: freebsd-questions@freebsd.org Subject: Re: Unable to get hostname through DHCP Message-ID: <20030412001046.GA21606@catflap.home.slightlystrange.org> In-Reply-To: <Pine.GSO.4.53.0304111629480.19645@sbpub2> References: <Pine.GSO.4.53.0304111629480.19645@sbpub2>
next in thread | previous in thread | raw e-mail | index | archive | help
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 / \
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030412001046.GA21606>