[
https://issues.apache.org/jira/browse/JAMES-796?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513378
]
Stefano Bagnara commented on JAMES-796:
---------------------------------------
I've added a test to DNSServerTest.java
---------------------
/**
* Temporary "online" test to check JAMES-796
* http://sourceforge.net/mailarchive/forum.php?forum_name=dnsjava-users
* https://issues.apache.org/jira/browse/JAMES-796
*/
public void testRecursion() throws Exception {
dnsServer.setResolver(new ExtendedResolver(new String[]
{"194.246.118.118"}));
// dnsServer.setCache(new ZoneCache("pippo.com."));
Collection records = dnsServer.findMXRecords("uudial.ch.");
assertEquals(1, records.size());
assertEquals("mail.messaging.ch.", records.iterator().next());
}
---------------------
And I can confirm that also the new code in trunk is failing in the operation
requested by the issue reporter.
I've still to understand what is the correct approach and I've written a
message to dnsjava user list to try to clear up the issue:
http://sourceforge.net/mailarchive/forum.php?thread_name=28110659.5694231184708972695.JavaMail.root%40elysia.void.it&forum_name=dnsjava-users
> Do also query authoritative nameservers to obtain MX record
> -----------------------------------------------------------
>
> Key: JAMES-796
> URL: https://issues.apache.org/jira/browse/JAMES-796
> Project: James
> Issue Type: Improvement
> Reporter: Armin Häberling
>
> for example for zunft-oberstrass.ch
> DNSServer.lockup("zunft-oberstrass.ch", Type.MX, "MX")
> will return null, but
> DNSServer.lockup("zunft-oberstrass.ch", Type.NS, "NS")
> will return two authoritative nameservers, which then can be queried and
> return the MX record for zunft-oberstrass.ch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]