What is the cache expiration date for com.sun.jndi.dns.DnsContextFactory?

Strive to find comprehensive documentation for JNDI and DNS. There is, but it is rather limited.

Specific question: is it possible to control the caching behavior of DNS queries using com.sun.jndi.dns.DnsContextFactory

, for example, to say "do not cache".

Sample code:

Hashtable<String, String> env = new Hashtable<String, String>();
env.put("java.naming.factory.initial", "com.sun.jndi.dns.DnsContextFactory");
env.put("java.naming.provider.url", "dns://mydns/mycompany.com");
....
DirContext ictx = new InitialDirContext(env);

      

Also, is there some extensive API documentation that I haven't found yet?

+2


a source to share





All Articles