Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2007

Tip: Looking for answers? Try searching our database.

JVM DNS cache flush

Thread view: 
Sideswipe - 07 Nov 2007 19:38 GMT
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



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.