From owner-freebsd-questions Wed Jan 22 17:01:47 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id RAA15294 for questions-outgoing; Wed, 22 Jan 1997 17:01:47 -0800 (PST) Received: from gdi.uoregon.edu (gdi.uoregon.edu [128.223.170.30]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA15283 for ; Wed, 22 Jan 1997 17:01:38 -0800 (PST) Received: from localhost (dwhite@localhost) by gdi.uoregon.edu (8.8.4/8.6.12) with SMTP id RAA10453; Wed, 22 Jan 1997 17:01:31 -0800 (PST) Date: Wed, 22 Jan 1997 17:01:31 -0800 (PST) From: Doug White X-Sender: dwhite@localhost Reply-To: Doug White To: Carl Makin cc: freebsd-questions@freebsd.org Subject: Re: logon hangs. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 22 Jan 1997, Carl Makin wrote: > > I'm having a problem with logons, su's and xterm invocations hanging when > the nameserver goes away or loses it's internet link. > > I have a home network where a FreeBSD 2.1.6.1 box running Darren Reed's > IPFilter package is acting as a gateway to the Internet for a bunch of > other machines. I run named on this gateway with different configurations > for the different ISPs I use, all invoked by a dial script. > > My main FreeBSD box sits behind this gateway and points resolv.conf to it. > When the modem drops out or the gateway box is not powered on my main > FreeBSD box hangs for a while when logging in, invoking an xterm, or using > su. It's obviously a nameserver timout problem but I'm buggered if I can > work out why the damn thing is querying the nameserver in the first place. It's trying to reverse-query you so it can record it in the utmp file. What shell are you using? tcsh v6.05 had a bug that did a lookup each time you ran it. 6.06 fixes it. > I changed the order in resolve.conf to hosts then bind and made sure ALL > hosts I use are in the hosts file but still no joy. What about /etc/host.conf? did you rewire it to search /etc/hosts first? Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major