Link to home
Start Free TrialLog in
Avatar of dshrenik
dshrenikFlag for United States of America

asked on

Turn of DNS caching in the Java runtime

Please let me know how I can turn of DNS caching in the Java runtime.
The solution here says that I must do that to be on the safer side:
http://stackoverflow.com/questions/1139547/detect-internet-connection-using-java

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dshrenik

ASKER

So is this specific to my particular application?

If yes, that's great!

Also, can you tell me how I can do this through java code. Thanks!
I can't find the place where they say thiat in the link, but in fact
you don't need really to worry about it.
Check two websites - one more rare than google - you can't predict all coincidences, so really don't pay attention to that
>>Also, can you tell me how I can do this through java code.
System.setProperty("sun.net.inetaddr.ttl", "0");

Open in new window