JVM

Java SE 17 defaults to caching DNS lookups forever if a Security Manager is installed. Override networkaddress.cache.ttl if you are still using the deprecated Security Manager to avoid connecting to the wrong IP addresses. Without a Security Manager installed, the default TTL is 30 seconds in HotSpot.