From owner-freebsd-questions@FreeBSD.ORG Fri May 12 15:56:52 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 3B60C16A58F for ; Fri, 12 May 2006 15:56:52 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 556EF43D5C for ; Fri, 12 May 2006 15:56:51 +0000 (GMT) (envelope-from kdk@daleco.biz) Received: from [192.168.2.2] ([69.27.149.254]) by ezekiel.daleco.biz (8.13.4/8.13.1) with ESMTP id k4CFunS7062922; Fri, 12 May 2006 10:56:49 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <4464B03C.8000104@daleco.biz> Date: Fri, 12 May 2006 10:56:44 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.0.2) Gecko/20060509 SeaMonkey/1.0.1 MIME-Version: 1.0 To: Barnaby Scott 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> In-Reply-To: <4464A7E5.7060000@waywood.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org 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 15:56:52 -0000 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. > > You should also >> check that your hostname is in the DNS. You might find something like >> DynDNS or ZoneEdit useful if your machine is on a dynamically assigned >> domestic range, such as you'd get from NTL or Telewest. > > Do I really want it in the DNS? I'm not sure exactly what this means in > the context of my little network, but if it means people outside my > network being able to look for my computer by name, I certainly don't > want that. In case it is important, I should say that during > installation I was asked to configure my NIC and that was where I put a > hostname, but I *didn't* enter a domain name. Should I have put > something here - if so, what? > Lack of name resolution can cause several things to be "slow" during booting, but SendMail is the chief culprit. Do you need SendMail? If this is a workstation on a LAN, don't you have another SMTP server available for your mail client? If you don't need sendmail, I'd do this: sendmail_enable="NONE" in /etc/rc.conf, and reboot. Good chance things'll speed up. We are still just shooting in the dark here. Are there no log messages or additional indicators of what the trouble may be? Kevin Kinsey -- Majority, n.: That quality that distinguishes a crime from a law.