develooper Front page | perl.module-authors | Postings from January 2010

Module naming suggestions : Test::DNS

Thread Next
From:
Sawyer X
Date:
January 10, 2010 09:35
Subject:
Module naming suggestions : Test::DNS
Message ID:
6b0028741001100935nf60dbf9m754fe487fbd43acf@mail.gmail.com
Hi.

This seems like the proper place to advise on a module name.

I've recently wrote a module that allows to test DNS queries pretty simple
using Net::DNS.
---
# sample
use Test::DNS;
my $dns = Test::DNS->new( nameservers => [...], ... );
$dns->is_ptr( '1.2.3.4' => 'single.ptr.record.com' );
$dns->is_ptr( '1.2.3.4' => [ 'one.ptr.record.com', 'two.ptr.record.com' ] );
$dns->is_ns( 'google.com' => [ map { "ns$_.google.com" } 1 .. 4 ] );
$dns->is_a( 'ns1.google.com' => '216.239.32.10' );
...
and so forth
---

I named it Test::DNS (haven't uploaded it to CPAN yet), but I'm thinking it
might not be the best name even though it's more catchy.
Net::DNS is very versatile, and resolving is just a part of what it can do.
Perhaps a better name would be Test::DNS::Resolving or Test::DNS::Resolve or
something like that.

What do you think?

Thanks,
Sawyer.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About