> From: Matt Welsh <[EMAIL PROTECTED]>
> Date: Sun, 16 Apr 2000 22:13:22 -0700
>
> Bryce McKinlay <[EMAIL PROTECTED]> writes:
> > I disagree with this. Caching inside InetAddress is a misfeature. The underly
> > ing OS already caches DNS entries.
>
> Really? Do *all* underlying O/S's cache Internet address lookups?
No, they don't. Recently I tracked down a problem with an overloaded
name server to a room full of machines running a rival OS. :-) Each
machine was doing several identical DNS lookups every second!
> My guess was that this was added to java.net.InetAddress to mask any
> incompatibilities between operating systems in this regard.
That's possibly true, but that doesn't excuse an incorrect
implementation; a cache that doesn't obey the expiration times is
wrong.
Andrew.