mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Bagnara <apa...@bago.org>
Subject Re: Asynchronous DNS query as a separate submodule
Date Tue, 19 Feb 2008 12:50:34 GMT
In jSPF library (james.apache.org/jspf/) we use dnsjnio [1] (an 
anynchronous/SEDA wrapper for dnsjava). It is opensource and licensed 
under the Apache License v2.

It may also worth remembering this past discussion:


[1] http://sourceforge.net/projects/dnsjnio

이희승 (Trustin Lee) ha scritto:
> Hi,
> I thought about incorporating asynchronous DNS query feature into MINA
> core, and reached to the temporary conclusion that it might be a better
> idea to keep it as a separate submodule.
> The reasoning behind this idea is that InetSocketAddress() doesn't query
> DNS server at all if an IP address is specified.  For example, new
> InetSocketAddress("gleamynode.net", 8080) causes a DNS lookup, but new
> InetSocketAddress("", 8080) doesn't, which means that we
> can still keep SocketAddress as a standard interface to represent an
> endpoint.
> In the separate module, user could request asynchronous DNS query like
> the following:
> DnsResolver resolver = ...;
> Future<InetAddress> f = resolver.query("gleamynode.net");
> // returns an InetAddress with an IP address rather than with host name.
> InetAddress address = f.get();
> By providing this submodule rather than changing the core:
> 1) Most users are happy that they don't need to change anything.
> 2) Some users who needs asynchronous domain name resolution can use the
> submodule for better simultaneous, asynchronous, complicated domain
> resolution.
> We could provide it as a subproject, but in this case, providing it as a
> submodule will make MINA more complete network application framework.
> On the other point, it's also the implementation of DNS protocol, so it
> might be a better idea to provide it as a subproject.

View raw message