Does anyone know of a way to flush the Cached DNS in the JVM in ColdFusion 9 without restarting the services.
It's important to flush a DNS cache for a few reasons. The first is the cache may contain outdated information. You might experience this as difficulty accessing websites or applications. If the domain name in the cache points to an old or incorrect IP address, the website won't return the correct information.
If you need clear DNS cache from client side for every 15 minutes, it is OK. After these caches were cleared, if needed, the client will re-query these records from DNS server.
You might try setting a custom value in the java.security file that would change the TTL for the dns lookups, but I don't believe there is a programmatic way to clear the cache.
http://tjordahl.blogspot.com/2004/10/cfmx-and-dns-caching.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With