From owner-freebsd-questions Fri May 17 12:59:46 2002 Delivered-To: freebsd-questions@freebsd.org Received: from spork.pantherdragon.org (spork.pantherdragon.org [206.29.168.146]) by hub.freebsd.org (Postfix) with ESMTP id ECB7437B400 for ; Fri, 17 May 2002 12:59:40 -0700 (PDT) Received: from spark.techno.pagans (spark.techno.pagans [4.61.202.145]) by spork.pantherdragon.org (Postfix) with ESMTP id 8C4BC471DC; Fri, 17 May 2002 12:59:39 -0700 (PDT) Received: from pantherdragon.org (speck.techno.pagans [172.21.42.2]) by spark.techno.pagans (Postfix) with ESMTP id 2445626C17; Fri, 17 May 2002 12:59:39 -0700 (PDT) Message-ID: <3CE5612B.7A158E59@pantherdragon.org> Date: Fri, 17 May 2002 12:59:39 -0700 From: Darren Pilgrim X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Joshua Lokken Cc: freebsd-questions@freebsd.org Subject: Re: Having a bad time with hostname References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [As this is a technical problem, I've moved this thread from -newbies to -questions.] Joshua Lokken wrote: > > Hello > > I am using DHCP. When I configure my NIC under FreeBSD, it > uses the name that Win2K arbitrarily gives my box when I set it > up, which I don't normally alter because I don't need to. Do I > have to use name (frustratingly inclusive of a string of random > letters and numbers)? You can use the supersede option in dhclient.conf to force dhclient to ignore what Win2k tells it and use the hostname you want. For example, my ISP, like most, provides a domain name and DNS servers as part of the DHCP reply. I want my server to use my internal DNS cache and domain, so I have this in /etc/dhclient.conf: interface "dc0" { supersede domain-name-servers 172.21.42.1; supersede domain-name "techno.pagans"; } This is the point where you go read dhclient.conf(5). :) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message