Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 May 2006 14:15:11 -0400
From:      Bill Moran <wmoran@collaborativefusion.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: very slow boot (newbie)
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>

next in thread | previous in thread | raw e-mail | index | archive | help
Daniel Bye <freebsd-questions@slightlystrange.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060512141511.66b2dbba.wmoran>