From owner-freebsd-questions Thu Jan 2 05:29:32 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id FAA03950 for questions-outgoing; Thu, 2 Jan 1997 05:29:32 -0800 (PST) Received: from synwork.com (root@synwork.com [199.3.234.4]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id FAA03945 for ; Thu, 2 Jan 1997 05:29:28 -0800 (PST) Received: from localhost (mike@localhost) by synwork.com (8.7.5/8.6.12) with SMTP id HAA03555; Thu, 2 Jan 1997 07:29:16 -0600 (CST) Date: Thu, 2 Jan 1997 07:29:16 -0600 (CST) From: Mike Kercher To: Thamer Al-Herbish cc: questions@FreeBSD.ORG, Nadav Eiron Subject: Re: netstat -r 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 Another option is to run 'netstat -rn' instead. This will return IP's instead of FQDN's. :) Mike ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ Syn-Work Media, Inc. | WWW Development & Hosting | Life Safety http://www.synwork.com | Systems Integration | CCTV mike@synwork.com | Voice/Data/Fiber | Access Control Flaq on IRC | Dukane Distributor | BICSI/RCDD :|:|:|: Powered By FreeBSD :|:|:|: Turning PC's Into Workstations ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~ On Thu, 2 Jan 1997, Thamer Al-Herbish wrote: > On Thu, 2 Jan 1997, Nadav Eiron wrote: > > > > My Petium 120 is running FreeBSD 2.1. When I run the command netstat -r from > > > the command line with user ppp running, it takes this command several minutes > > > at best to complete. Why does it take so long? What is is doing that is taking > > > so much time(name lookup?)? Is there any way to improve the performance? > > > Kirk :) > > Actually there is.. but.. it might cause such tools to be bloated. A > while back I wrote a tool which had to display X number of hostnames in > its output, possible hundreds taken out of IP addresses, I simply > implemented an asynchoronous lookup to do it. By writing out the query > packets and shooting it off. (This was done after it did its original job). > > Sadly alot of other applications like "netscape" on UNIX-like OSs seem to > have this problem, they'll hang up on a gethostbyname() till the lookup > is complete, this is even more annoying on a GUI app. > > I had a look at the res library but I didnt find any "real" asynchronous > lookup functions, would be nice if one was around.. like > async_gethostbyname(...original arguments.., SIGUSR1), where it would > signal when it got it. > > ------------------------------------------------------------------------------ > Thamer Al-Herbish (ShadowS) The views expressed here, have no relevance > shadows@whitefang.com to those of my employer. And may not have > shadows@kuwait.net any relevance to subject at hand. > -=whitefang dawt kawm=- > ------------------------------------------------------------------------------- > >