Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Apr 2001 01:25:20 -0400
From:      "Matthew Emmerton" <matt@gsicomp.on.ca>
To:        "Dan Debertin" <airboss@bitstream.net>, "Daehyun Yoon" <yoon@nacse.org>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@FreeBSD.ORG>, "freebsd-net@freebsd.org" <freebsd-net@FreeBSD.ORG>
Subject:   Re: Slow netstat -r printout
Message-ID:  <002001c0bcc7$a530b380$1200a8c0@gsicomp.on.ca>
References:  <Pine.NEB.4.33.0104040016490.593-100000@amnesia.nodewarrior.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> It's taking so long because it's trying to do a DNS resolution of every IP
> address that it prints. My guess is that @Home uses some non-registered
> RFC1918 address space for its clients, so those addresses will never
> resolve, and will take forever not doing so. The -n flag disables DNS
> resolution, which is why it's so much faster.

Do 'netstat -rn' once and record the RFC1918 addresses that @Home is using.
Then add the appropriate entries to /etc/hosts.  After that, you can do
'netstat -r' and the RFC1918 addresses will be resolved from /etc/hosts,
which is much, much faster.

--
Matt Emmerton




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002001c0bcc7$a530b380$1200a8c0>