You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Noel J. Bergman" <no...@devtech.com> on 2004/04/21 06:29:56 UTC

JAMES-265 and the pending Release

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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Re: JAMES-265 and the pending Release

Posted by Soren Hilmer <so...@tietoenator.com>.
+1 to add the fix.

On Wednesday 21 April 2004 06:29, Noel J. Bergman wrote:
> 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: server-dev-unsubscribe@james.apache.org
> For additional commands, e-mail: server-dev-help@james.apache.org

-- 
Søren Hilmer, M.Sc.
R&D manager             Phone:  +45 70 27 64 00
TietoEnator IT+ A/S     Fax:    +45 70 27 64 40
Ved Lunden 12           Direct: +45 87 46 64 57
DK-8230 Åbyhøj          Email:  soren.hilmer <at> tietoenator.com


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org