I am facing a problem with JVM and DNS.
Everything I\'m reading (including the docs and this) says that I can disable JVM DNS caching using networkaddress.cache.tt
networkaddress.cache.tt
From here it seems you should set sun.net.inetaddr.ttl. This worked for me.
sun.net.inetaddr.ttl
Example from link:
java -Dsun.net.inetaddr.ttl=1 test Enter the hostname rrr Output isrrr/129.145.146.100 Enter the hostname rrr Output isrrr/129.147.146.100