From owner-freebsd-questions@FreeBSD.ORG Tue Jul 6 12:42:58 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 E8C1716A4CE for ; Tue, 6 Jul 2004 12:42:58 +0000 (GMT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADBF943D5A for ; Tue, 6 Jul 2004 12:42:58 +0000 (GMT) (envelope-from wmoran@potentialtech.com) Received: from working.potentialtech.com (pa-plum-cmts1e-68-68-113-64.pittpa.adelphia.net [68.68.113.64]) by internet.potentialtech.com (Postfix) with ESMTP id AC57269A39; Tue, 6 Jul 2004 08:42:57 -0400 (EDT) Date: Tue, 6 Jul 2004 08:42:56 -0400 From: Bill Moran To: Martin Message-Id: <20040706084256.1fb5e775.wmoran@potentialtech.com> In-Reply-To: <1089094675.1206.23.camel@klotz.local> References: <1089094675.1206.23.camel@klotz.local> Organization: Potential Technologies X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: When named is not available X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jul 2004 12:42:59 -0000 Martin wrote: > Hi, > > I have a problem with named in my LAN. My notebook > is sometimes attached to this network and sometimes > not. > > Everything works well when the network cable is plugged-in. > Without the network cable (same network settings), the following > happens: > > - sendmail is waiting for timeout while booting (ok, this is > actually not a big problem, just a little bit annoying) > - host anyhost needs 30 seconds to return with a timeout > - starting any X-application takes 2 minutes 30 seconds till > it appears on the local display > > Remarks about X: > - XFree86 is configured not to accept TCP connections > - the problem above does not occur when running the X-server > without a WM and with twm (affects KDE, Gnome, Xfce) > > Why does the resolver need 30 seconds to look up a host > when named is offline? It's a standard timeout. The resolver isn't aware of the status of parts of the network stack below it ... it just waits for 30 seconds for a reply and then gives up if none comes. This is because it's possible to have different NICs/modems/etc accessing the network, so it would be difficult to teach the resolver when it waited for the the timeout and when not to try. The question I have is: Why are you doing "host somehost" when you're obviously not connected to the network? You're the human in this process, don't give the computer things to do that it obviously can't accomplish and then wonder about it. > Something has changed with XFree, which since recently looking > up hosts (localhost?) when starting an X-application. How do > I turn it off? Make sure that /etc/hosts has every possible name for your machine in it, in addition to "localhost". Any time I've seen one of those WMs get hung up on DNS, it was becuase it was trying to verify its own host name. -- Bill Moran Potential Technologies http://www.potentialtech.com