JVM DNS cache flush

S

Sideswipe

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
 
G

Gordon Beaton

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.

Have you not read the API documentation for InetAddress? Properties
networkaddress.cache.ttl and networkaddress.cache.negative.ttl are
described there.

/gordon

--
 
S

Sideswipe

Have you not read the API documentation for InetAddress? Properties
networkaddress.cache.ttl and networkaddress.cache.negative.ttl are
described there.

/gordon

--
My very post says I already know I can set the System properties on
the TTL.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,575
Members
45,053
Latest member
billing-software

Latest Threads

Top