From owner-freebsd-questions@FreeBSD.ORG Wed Jul 23 22:32:03 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D3141065670 for ; Wed, 23 Jul 2008 22:32:03 +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 2EAB98FC1B for ; Wed, 23 Jul 2008 22:32:03 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from localhost (localhost [127.0.0.1]) by ezekiel.daleco.biz (8.13.8/8.13.8) with ESMTP id m6NMW1LE043902; Wed, 23 Jul 2008 17:32:02 -0500 (CDT) (envelope-from kdk@daleco.biz) X-Virus-Scanned: amavisd-new at daleco.biz Received: from ezekiel.daleco.biz ([127.0.0.1]) by localhost (ezekiel.daleco.biz [127.0.0.1]) (amavisd-new, port 10024) with LMTP id EGKTU0Y1xi6H; Wed, 23 Jul 2008 17:31:58 -0500 (CDT) Received: from archangel.daleco.biz (dsl.daleco.biz [209.125.108.70]) by ezekiel.daleco.biz (8.13.8/8.13.8) with ESMTP id m6NMVtmG043898; Wed, 23 Jul 2008 17:31:55 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <4887B155.5020105@daleco.biz> Date: Wed, 23 Jul 2008 17:31:49 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.16) Gecko/20080719 SeaMonkey/1.1.11 MIME-Version: 1.0 To: Dave Abouav References: <4887A1D4.2070404@transducertech.com> <4887AADF.5080102@transducertech.com> In-Reply-To: <4887AADF.5080102@transducertech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: system hangs on boot up if no internet available 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: Wed, 23 Jul 2008 22:32:03 -0000 Dave Abouav wrote: > Our DNS goes through our ISP. The IP addresses of their DNS servers are > hard-coded into the server's /etc/rc.conf file. No amount of waiting > seems to help. It always just hangs trying to load sshd. > > Chuck Swiger wrote: >> On Jul 23, 2008, at 2:25 PM, Dave Abouav wrote: >>> I setup a FreeBSD server (v 6.1) for my company as a simple Samba >>> server. It works fine. Except once in awhile our access to the >>> outside internet goes out (due to our ISP), and when it does the >>> FreeBSD server gets hung up, even after rebooted. This happened this >>> morning, so I put a console on it, and rebooted it. I saw that it >>> gets hung trying to start sshd. No error messages are given. If I hit >>> Control-C, to skip loading sshd, then the rest of the boot-up goes >>> normally and people can again access the server. Any ideas how I can >>> avoid this problem? I'd rather not skip the loading of sshd. I don't >>> have any special programs on the server that contact the outside world. >> >> It's probably doing something which needs a DNS lookup. Do you have a >> subnet-local nameserver available, or does simply waiting for 2 >> minutes or so for a timeout do the trick? >> > Workaround, perhaps: set "UseDNS no" in /etc/ssh/sshd_config and try again? Perhaps better to run named or something locally, if that helps, but doing this would at least test Chuck's theory (which seems about correct to me, though why it *never* goes on I don't know). Kevin Kinsey