From owner-freebsd-questions@FreeBSD.ORG Fri Oct 29 09:44:59 2004 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 9199516A4CE for ; Fri, 29 Oct 2004 09:44:59 +0000 (GMT) Received: from 9.hellooperator.net (cpc3-cdif2-3-0-cust202.cdif.cable.ntl.com [81.103.32.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 268FB43D2D for ; Fri, 29 Oct 2004 09:44:59 +0000 (GMT) (envelope-from rasputin@hellooperator.net) Received: from rasputin by 9.hellooperator.net with local (Exim 4.43) id 1CNTIU-00066V-CS; Fri, 29 Oct 2004 10:43:50 +0100 Date: Fri, 29 Oct 2004 10:43:50 +0100 From: Dick Davies To: Mick Walker Message-ID: <20041029094350.GH15691@lb.tenfour> References: <1099005540.26921.5.camel@codegurus.org> <20041028232536.GA29572@xor.obsecurity.org> <1099040705.26921.9.camel@codegurus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1099040705.26921.9.camel@codegurus.org> User-Agent: Mutt/1.4.2.1i Sender: Rasputin cc: FreeBSD Questions Subject: Re: Hostname X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Dick Davies List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Oct 2004 09:44:59 -0000 * Mick Walker [1004 10:04]: > On Fri, 2004-10-29 at 00:25, Kris Kennaway wrote: > > > On Fri, Oct 29, 2004 at 12:19:01AM +0100, Mick Walker wrote: > > > Hi, > > > > > > I recently (today) upgraded to 5.3-STABLE. > > > I am wondering why I cant set my hostname. > > > It works if I issue the command hostname whatever.com, but on reboot it > > > is reset to nothing. > > > I have it set up in my /etc/rc.conf so it applies at boot time. > > > > > > Does anyone know how I can fix this? > > > > Show us what you've done first, don't describe what you think you did :-) > > > > Kris > > > $ hostname > > $ > $ hostname laptop.codegurus.org > $ hostname > laptop.codegurus.org > $ > > And in my /etc/rc.conf file I have: > hostname="laptop.codegurus.org" Personally I'd just put 'laptop' in there, and add a search codegurus.org at the top of resolv.conf, but that's not what's breaking your config. Is dhcp or something unsetting the hostname ? There should be a line in the boot messages that says Setting hostname: laptop.codegurus.org - look out for that, if it appears then something is resetting it later in the boot. -- common sense is what tells you that the world is flat. - Principia Discordia Rasputin :: Jack of All Trades - Master of Nuns