From owner-freebsd-questions@FreeBSD.ORG Fri May 12 18:15:17 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 E8F8816B2FF for ; Fri, 12 May 2006 18:15:17 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id E84AE43D60 for ; Fri, 12 May 2006 18:15:12 +0000 (GMT) (envelope-from wmoran@collaborativefusion.com) Received: from localhost (monrovll-cuda1-24-53-251-44.pittpa.adelphia.net [24.53.251.44]) (AUTH: LOGIN wmoran, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Fri, 12 May 2006 14:15:12 -0400 id 00056405.4464D0B0.000003EB Date: Fri, 12 May 2006 14:15:11 -0400 From: Bill Moran To: freebsd-questions@freebsd.org Message-Id: <20060512141511.66b2dbba.wmoran@collaborativefusion.com> In-Reply-To: <20060512175626.GD34035@catflap.slightlystrange.org> References: <44639855.90102@waywood.co.uk> <4463C5E4.50109@daleco.biz> <4463D2EC.1020100@waywood.co.uk> <20060512125648.GG5531@catflap.slightlystrange.org> <4464A7E5.7060000@waywood.co.uk> <20060512175626.GD34035@catflap.slightlystrange.org> Organization: Collaborative Fusion X-Mailer: Sylpheed version 1.0.6 (GTK+ 1.2.10; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: very slow boot (newbie) 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: Fri, 12 May 2006 18:15:22 -0000 Daniel Bye wrote: > On Fri, May 12, 2006 at 04:21:09PM +0100, Barnaby Scott wrote: > > >The fact that the operating system knows what the machine is called, > > >does not necessarily mean that the name is in the DNS. You can put an > > >entry in your /etc/hosts file (take a look at the file for the format), > > >which will allow sendmail and other daemons to start. > > > > OK, I looked in /etc/hosts and only 127.0.0.1 localhost appears there. > > How do I put another entry in here though, when I don't know in advance > > the IP address that will be allocated to this machine by the DHCP server > > (provided by my router)? The odd thing is that the system knows exactly > > what IP address has been assigned, because I can see that transaction > > taking place during the boot sequence long before the point where it > > stalls. Make an entry in /etc/hosts similar to: 127.0.0.1 hostname hostname.domain.com (Only substitute your actual host and domain names) Unless you reconfigure something, the resolver always checks /etc/hosts first. Thus the DNS timeouts will never occur as the system will find its hostname. Not that, in my experience, it's important to put _both_ the short name and the FQDN in. -- Bill Moran That's why I never kiss 'em on the mouth. Jayne Cobb