From owner-freebsd-questions@FreeBSD.ORG Thu Mar 8 09:28:39 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 32AD316A400 for ; Thu, 8 Mar 2007 09:28:39 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id E94D013C428 for ; Thu, 8 Mar 2007 09:28:28 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.0/8.13.8) with ESMTP id l289SL26067633 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 8 Mar 2007 03:28:23 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.0/8.14.0/Submit) id l27LSQSv072035; Wed, 7 Mar 2007 15:28:26 -0600 (CST) (envelope-from dan) Date: Wed, 7 Mar 2007 15:28:26 -0600 From: Dan Nelson To: Chris Slothouber , User Questions Message-ID: <20070307212826.GN86959@dan.emsphone.com> References: <45EF2BB0.9000609@hier7.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45EF2BB0.9000609@hier7.com> X-OS: FreeBSD 6.2-STABLE User-Agent: Mutt/1.5.14 (2007-02-12) Cc: vivek.prasannan@gmail.com Subject: Re: w hangs before loading 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: Thu, 08 Mar 2007 09:28:39 -0000 Chuck Swiger wrote: > On Mar 7, 2007, at 12:41 PM, Vivek Prasannan wrote: > >When I type the command 'w' it holds for a while before printing the > >output. There is no firewall in the system, load average is below > >0.8 and I suspect it is something else. Any thoughts on this. > > The 'w' command attempts to look up the hostnames for any users which > are remotely logged in. > > If you encounter a significant delay, that suggests that reverse DNS > (aka PTR record lookups) is not properly configured or is performing > slowly in your situation. Chris Slothouber wrote: > Check to make sure your /etc/resolv.conf is configured correctly. It > sounds like it could be taking a while to resolve the remote > addresses connected. A good way to verify that this is the problem is to run "w -n", which won't do DNS lookups. -- Dan Nelson dnelson@allantgroup.com