Folks,

If you have been following the discussion on server-user@, you will have
noticed a lengthy discussion between Marc De Oliviera and myself that
resulted in a one line (two, if you count the avoidable import :-)) change
to DNSServer.java.

  +import org.xbill.DNS.Lookup;
  @@ -148,6 +149,7 @@
           try {
               resolver = new ExtendedResolver( serversArray );
  +            Lookup.setDefaultResolver(resolver);
           } catch (UnknownHostException uhe) {

The change sets the default resolver for dnsjava.  Without it, dnsjava makes
a best guess regarding how to resolve DNS information, and ignores the
configured servers when using the high level API, e.g.,
Address.get[All]ByName().  With it, we force dnsjava to always use the
servers configured for James.

Considering that Marc could not use RC1 because of this issue, I'd like to
see 2.2.0 ship with this fix.  I'm sure that his is not the only system for
which dnsjava won't be able to autodetect the DNS servers.

        --- Noel


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to