Java caches dns entries

Java caches dns entries

When a dns name changes, we have to restart portal it to use the new dns name. Is there a way to disable this in Java ?

Java by defaults caches successful dns resolutions, this can be changed by 
editing the /stoneware/jre/lib/security/java.security file. At the bottom is a 
line that is commented out, thus using the default of -1. The line looks like : 
#networkaddress.cache.ttl=-1 

Edit this line, take out the # and change the -1 to 0 to disable all caching. 
Any other number will be the number of seconds it caches the entry. 

You can also add -Dsun.net.inetaddr.ttl=0 to the additional parameters line in the /stoneware/bin/webnetwork.lax