From owner-freebsd-questions Fri Feb 16 8:51:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gekko.i-clue.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id 4E6FE37B503 for ; Fri, 16 Feb 2001 08:51:18 -0800 (PST) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.i-clue.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id SAA25469; Fri, 16 Feb 2001 18:56:50 +0100 Message-ID: <3A8D5ADB.3DF49807@i-clue.de> Date: Fri, 16 Feb 2001 17:52:43 +0100 From: Christoph Sold Reply-To: so@server.i-clue.de X-Mailer: Mozilla 4.75 [de] (WinNT; U) X-Accept-Language: de MIME-Version: 1.0 To: darryl@osborne-ind.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Netstat problems. References: <001501c0982b$e4533d50$0701a8c0@darryl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Darryl Hoar schrieb: > > Greetings, > I am running 4.0-release. This machine is running userland ppp > with -auto -nat flags. It acts as a gateway to the internet for my > LAN. The link to the internet is a dialup and ip is dynamically > assigned by ISP. > > My problem is that when I run netstat -r to examine the routing > tables, the command hangs and never responds. After a couple > minutes I control C to kill it. If I reboot, same story. Maybe a > line or two, but never completes and takes me back to the > command prompt. > > Any ideas what's up with this ? You have not setup our nameserver properly. netstat -r tries to reverse lookup the names for all the machines in the routing table. Each lookup times out after about a minute. Even if you have only minimal entries in your routing tables, lookups need a couple of minutes to time out. A simple workaround is to use netstat -rn instead: this way netstat uses IP numbers instead of names. HTH -Christoph Sold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message