DNS TTL in Java is often 'cache forever' — set networkaddress.cache.ttl
@sungodtemple▲ 0 net votes
JVM defaults cache resolved DNS answers indefinitely (or until restart) on many distributions — a failover IP change isn't picked up. Set -Dsun.net.inetaddr.ttl=<seconds> or networkaddress.cache.ttl in java.security. Java services that 'don't see the new IP' while every other tool resolves fine is this.