You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Richard Wallace <rw...@thewallacepack.net> on 2007/01/10 22:03:50 UTC
MINA based DNS client
Hello all,
I noticed there is a protocol handler for a DNS server, but didn't see
if there is anything that can be used as a client. Is there a MINA
based DNS client in the ApacheDS project?
Thanks,
Rich
Re: MINA based DNS client
Posted by Enrique Rodriguez <en...@gmail.com>.
On 1/12/07, Richard Wallace <rw...@thewallacepack.net> wrote:
...
> Looks like there are encoders for the most common stuff and I was able
> to do a quick little one off client that sends a request for an MX
> record. But there don't seem to be any decoders.
OK, my bad. As you can tell I haven't been in there in a while.
> I'd also like to
> try and break it down a little bit more, because adding the dependency
> on the apacheds-protocol-dns artifact to my project pulled in quite a
> bit of other stuff (like shared-ldap, shared-asn1, antlr, jdbm).
> They're not really needed by someone just wanting to make use of the
> dns protocol codecs and I'd rather not have to do a done of exclusions
> to get it all back out.
Yeah, as a server plugin it was pretty functional but it does mean it
has all the deps of the Directory core. All those deps should be
behind JNDI; at a minimum, they are all related to some store
interface.
> Would you mind too much if I tried my hand at doing a little
> refactoring? There are some things I'd like to add, such as
> convenience methods for creating different types of DnsMessage
> objects (it took me quite a while to track down all the parameters I
> had to set for the constructor, I'd rather not have to do that again ;).
I wouldn't mind at all. In fact, it would be great.
Enrique
Re: MINA based DNS client
Posted by Richard Wallace <rw...@thewallacepack.net>.
Enrique Rodriguez wrote:
> On 1/10/07, Richard Wallace <rw...@thewallacepack.net> wrote:
>> Hello all,
>>
>> I noticed there is a protocol handler for a DNS server, but didn't see
>> if there is anything that can be used as a client. Is there a MINA
>> based DNS client in the ApacheDS project?
>
> No, but there are codecs for the PDU's including the most popular
> resource records, so a decent amount of rote work is available for
> reuse by a client.
>
> Enrique
Looks like there are encoders for the most common stuff and I was able
to do a quick little one off client that sends a request for an MX
record. But there don't seem to be any decoders. I'd also like to
try and break it down a little bit more, because adding the dependency
on the apacheds-protocol-dns artifact to my project pulled in quite a
bit of other stuff (like shared-ldap, shared-asn1, antlr, jdbm).
They're not really needed by someone just wanting to make use of the
dns protocol codecs and I'd rather not have to do a done of exclusions
to get it all back out.
Would you mind too much if I tried my hand at doing a little
refactoring? There are some things I'd like to add, such as
convenience methods for creating different types of DnsMessage
objects (it took me quite a while to track down all the parameters I
had to set for the constructor, I'd rather not have to do that again ;).
Rich
Re: MINA based DNS client
Posted by Enrique Rodriguez <en...@gmail.com>.
On 1/10/07, Richard Wallace <rw...@thewallacepack.net> wrote:
> Hello all,
>
> I noticed there is a protocol handler for a DNS server, but didn't see
> if there is anything that can be used as a client. Is there a MINA
> based DNS client in the ApacheDS project?
No, but there are codecs for the PDU's including the most popular
resource records, so a decent amount of rote work is available for
reuse by a client.
Enrique