Link to home
Start Free TrialLog in
Avatar of Steve Jennings
Steve Jennings

asked on

java and local dns cache

I have an application that tests connectivity to web and oracle servers. Recently I replaced all of the IP addresses that I'd hardcoded in my java app with DNS names that I keep in a local host file. For testing purposes, I have two hosts files, one with valid IP addresses and one with names that resolve to IP addresses that aren't reachable from my network. HOWEVER, when the application has been running using the "good" hosts file, it continues to run fine once I copy in the "bad" hosts file, even when I run "ipconfig /flushdns" after loading the "bad" hosts file.

Does java use a separate internal dns cache? Any ideas?

Avatar of tutran
tutran

can you post source code?
ASKER CERTIFIED SOLUTION
Avatar of Friedfly
Friedfly

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
SteveJ:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
I'm not particularly concerned about points, but I *did* provide an accurate and correct answer, and it seems to me that it would be best to leave it here for other people to see if they have the same problem.