The DNS cache overrides the actual DNS configuration; the DNS service is not checked if Java finds a match in the cache.
In order to have the DNS service consulted, the cache data must be set to expire periodically.
1) Edit: /opt/BladeLogic/br/java/lib/security/java.security
Uncomment and change:
Save your changes.
- The value 600 seconds = 10 minutes.
- The Java parameter, networkaddress.cache.ttl (default: -1) is specified in java.security to indicate the caching policy for successful name lookups from the name service. The value is specified as as integer to indicate the number of seconds to cache the successful lookup.
2) Restart the Application Server.
These changes should cause Java to cache DNS results for only 600 seconds instead of forever (-1=default).