[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN] DNS library released

alexd

10/30/2006 8:58:00 AM

Hello -

For those who may be interested, I have made the first release of my port
of perl's Net::DNS library to Ruby. The project is called pnet-dns, and
can be found here :

http://rubyforge.org/projects...

This project is a direct port from the perl, warts and all. Any perl code
using the library can be ported quickly and easily to Ruby. All the perl
tests have been ported and run successfully (from perl Net::DNS version
0.57).

Thanks,


Alex.

7 Answers

zimba.tm@gmail.com

10/30/2006 9:47:00 AM

0

Hi Alex,

Just a quick RTFM question : is it only a client or is it also
possible to build a server with it ?

--
Cheers,
zimbatm

http://zimba...

alexd

10/30/2006 10:09:00 AM

0

"Jonas Pfenniger" <zimba.tm@gmail.com> wrote on 30/10/2006 09:47:25:

> Just a quick RTFM question : is it only a client or is it also
> possible to build a server with it ?

It is primarily a client. However, with some work, it would be possible to
build a server from it.

It is a direct port from perl, so is best suited to code that folk are
porting from perl, rather than new design work in Ruby. It's pretty
"perlish"!

I am looking at implementing a new Ruby DNS library, dnsruby (
http://rubyforge.org/project...), but this is still some time away.
This library will be much closer to the Java DNS library (
www.dnsjava.org), which is a nicer, more OO library. Instead of being a
direct port (folk wanting to use dnsjava can always run in JRuby), it will
be a rubified version, which should be much nicer to work with.

HTH


Alex.

Daniel Berger

10/30/2006 12:44:00 PM

0

alexd@nominet.org.uk wrote:
> Hello -
>
> For those who may be interested, I have made the first release of my port
> of perl's Net::DNS library to Ruby. The project is called pnet-dns, and
> can be found here :
>
> http://rubyforge.org/projects...
>
> This project is a direct port from the perl, warts and all. Any perl code
> using the library can be ported quickly and easily to Ruby. All the perl
> tests have been ported and run successfully (from perl Net::DNS version
> 0.57).
>
While I appreciate the effort, I'm curious why you didn't join Marco
Ceresa's project instead of creating your own project. I also wonder if
creating yet another DNS library (dnsruby) is really a good idea (too
many choices). Would a dnsruby really any better *in practice*? Why
not just refactor pnet-dns to incorporate the best of dnsjava?

Regards,

Dan

alexd

10/30/2006 12:51:00 PM

0

Daniel Berger <djberg96@gmail.com> wrote on 30/10/2006 12:44:18:

> While I appreciate the effort, I'm curious why you didn't join Marco
> Ceresa's project instead of creating your own project.

Marco had agreed to take my code during this summer, while I was still
developing. Once I had finished, Marco then decided that he wanted to
renew development of his Net::DNS project, but in a new, Ruby direction.
Rather than throw away the finished perl port, it seemed better to release
it, for those that want a perl port.

> I also wonder if
> creating yet another DNS library (dnsruby) is really a good idea (too
> many choices). Would a dnsruby really any better *in practice*? Why
> not just refactor pnet-dns to incorporate the best of dnsjava?

pnet-dns is a direct port of a perl library. The "refactor" of which you
speak is essentially a complete rewrite. I propose to make the rewrite a
separate project, as it targeting separate needs (those who would like a
port of a perl library, to aid in porting code which uses it, versus those
who want a "real" Ruby DNS library).

Thanks,


Alex.

James Gray

10/30/2006 2:23:00 PM

0

On Oct 30, 2006, at 6:44 AM, Daniel Berger wrote:

> alexd@nominet.org.uk wrote:
>> Hello -
>> For those who may be interested, I have made the first release of
>> my port of perl's Net::DNS library to Ruby. The project is called
>> pnet-dns, and can be found here :
>> http://rubyforge.org/projects...
>>
>> This project is a direct port from the perl, warts and all. Any
>> perl code using the library can be ported quickly and easily to
>> Ruby. All the perl tests have been ported and run successfully
>> (from perl Net::DNS version 0.57).
>>
> While I appreciate the effort, I'm curious why you didn't join
> Marco Ceresa's project instead of creating your own project. I
> also wonder if creating yet another DNS library (dnsruby) is really
> a good idea (too many choices). Would a dnsruby really any better
> *in practice*? Why not just refactor pnet-dns to incorporate the
> best of dnsjava?

I'm curious how all of these options differ from the standard resolv
library?

James Edward Gray II


alexd

10/30/2006 2:58:00 PM

0

James Edward Gray II <james@grayproductions.net> wrote on 30/10/2006
14:23:01:

> I'm curious how all of these options differ from the standard resolv
> library?

The standard resolv library lets you do a lot of DNS look-ups. However, it
is not a complete DNS implementation.

For example :

a) Several DNS RR types are not supported.
b) It is not possible to inspect wire formats.
c) DNSSEC is not supported.

Thanks,


Alex.

Eric Hodel

11/15/2006 9:28:00 PM

0

On Oct 30, 2006, at 6:57 AM, alexd@nominet.org.uk wrote:
> James Edward Gray II <james@grayproductions.net> wrote on 30/10/2006
> 14:23:01:
>
>> I'm curious how all of these options differ from the standard resolv
>> library?
>
> The standard resolv library lets you do a lot of DNS look-ups.
> However, it
> is not a complete DNS implementation.
>
> For example :
>
> a) Several DNS RR types are not supported.
> b) It is not possible to inspect wire formats.
> c) DNSSEC is not supported.

So why are you writing a whole new library to add this? Why not a
patch?

--
Eric Hodel - drbrain@segment7.net - http://blog.se...
This implementation is HODEL-HASH-9600 compliant

http://trackmap.rob...