Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Refresh DNS in coldfusion 9

Does anyone know of a way to flush the Cached DNS in the JVM in ColdFusion 9 without restarting the services.

like image 389
Matthew Friedman Avatar asked Feb 25 '13 16:02

Matthew Friedman


People also ask

Do I need to flush DNS?

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.

How often should you flush DNS?

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.


1 Answers

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

like image 157
Dan Short Avatar answered Sep 23 '22 06:09

Dan Short