I am told that the JVM maintains it's own DNS Caching and eschews the
OS cache for DNS.
Is that true?
If it is, then the follow-up question is how can I flush it?
I know I can set the TTL for the cache with a system property which
leads me to suspect I might be able to flush it as well.
Can anyone shed some light on this?
Christian
http://christian.bongiorno.org
Gordon Beaton - 07 Nov 2007 19:58 GMT
> I am told that the JVM maintains it's own DNS Caching and eschews
> the OS cache for DNS.
[quoted text clipped - 5 lines]
> I know I can set the TTL for the cache with a system property which
> leads me to suspect I might be able to flush it as well.
Have you not read the API documentation for InetAddress? Properties
networkaddress.cache.ttl and networkaddress.cache.negative.ttl are
described there.
/gordon
--
Sideswipe - 30 Nov 2007 23:02 GMT
> > I am told that the JVM maintains it's own DNS Caching and eschews
> > the OS cache for DNS.
[quoted text clipped - 13 lines]
>
> --
My very post says I already know I can set the System properties on
the TTL.
Roedy Green - 07 Nov 2007 20:42 GMT
On Wed, 07 Nov 2007 19:38:05 -0000, Sideswipe
<christian.bongiorno@gmail.com> wrote, quoted or indirectly quoted
someone who said :
>If it is, then the follow-up question is how can I flush it?
I don't know if you can flush it, but you can control its time to
live.
see http://mindprod.com/jgloss/ip.html#OTHERIP

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com