All Java applications use a DNS cache, because it is built into the JDK.
Technically, it is a naming service cache, because it caches name looks
from any naming service, not just DNS.
There is no way to flush the cache. However, there are properties that
you can use that control how long elements in the cache live -- by
default, they stay in the cache forever, which is what requires the
restart. Look at the ttl properties in
$JAVA_HOME/jre/lib/security/java.security -- those are what control the
cache values. Note that the sun.* values can be set via the command line
for a java app (so for glassfish, you would add to your configuration a
jvm-option like -Dsun.net.inetaddr.ttl=10).
-Scott
On Fri, 2009-01-23 at 04:56, glassfish_at_javadesktop.org wrote:
> Hello;
>
> Does Glassfish use a DNS-Cache? If yes, where can i enable/disable/flush it? I know that with Websphere, if there is a DNS Switch change, Websphere must be restarted. What about Glassfish?
>
> Thank you for any Tips...
>
> Ivo
> [Message sent by forum member 'jdrive' (jdrive)]
>
> http://forums.java.net/jive/thread.jspa?messageID=327769
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>