dns « jndi « Java Enterprise Q&A





1. Specify cache expiry for com.sun.jndi.dns.DnsContextFactory?    stackoverflow.com

Struggling to find comprehensive documentation for JNDI and DNS. There is some here but it's rather limited. Specific question: Is it possible to control the caching behaviour of lookups against ...

2. Email Validation using MX    stackoverflow.com

Need to implement the email validation to find if the email really exists. After some search found that the this is not possible due to the spam control techniques used (e.g. ...

3. Does JNDI use the DNS search list?    stackoverflow.com

I would like to use JNDI to look up Kerberos SRV records in a local network. I try to guess the local domain in hopefully clever ways. If that fails I ...

4. Get DNS SRV record using JNDI    stackoverflow.com

I am trying to get SRV records from a DNS server using JNDI.

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://dns.server.com");
DirContext ctx = new InitialDirContext(env);
Attributes attributes = ctx.getAttributes("_sip._udp", new String ...

5. JNDI DNS lookup with partial domain name    stackoverflow.com

For example if I have the following SRV record defined in my DNS config

_dev._tcp          IN      SRV  ...

6. Failure to Instantiate DnsContextFactory on JBoss 7    stackoverflow.com

When attempting to create a new InitialDirContext using the com.sun.jndi.dns.DnsContextFactory on JBoss AS 7, the following exception occurs:

Caused by: javax.naming.NamingException: Failed instantiate InitialContextFactory com.sun.jndi.dns.DnsContextFactory from classloader ModuleClassLoader for Module "deployment.test-case.ear.test-web.war:main" from ...

7. DNS JNDI lookup like linux host command    stackoverflow.com

if I have a SRV record like the following:

_sip._tcp.example.server.com has SRV record 0 5 8088 www.server.com.
_sip._udp.example.server.com has SRV record 0 5 8089 www1.server.com.
I can execute the following linux command
host -lt SRV ...