Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

flush dns

Status
Not open for further replies.

fuadhamidov

Programmer
Sep 22, 2003
98
0
0
TR
hi

in my project i need to call an internet address whose has "multiple and dynamic ip". so i need to run "ipconfig /flushdns" before calling internet address.

now i want to know is there any way (any class or any method) in java( in java 1.4_02 and in java 1.5 ), so i don't do this over command line (like getRuntime().exec("ipconfig /flushdns");)

thanks for any help
 
You won't be able to do that.

The JVM caches IP/DNS entries - so you must stop the JVM for it to work.
Secondly, Runtime.exec() would not work, even if you didn't have to stop the JVM because that just executes a command in a different shell - not the shell that the JVM is running in.

--------------------------------------------------
Free Database Connection Pooling Software
 
You won't be able to do that.
>> by java or by the way i have mentioned.

what is your suggestion to solve this problem?

i call internet address in applet and in thread. i think there should be something in java.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top