Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Net::WhoisNG 0.09

    Download button

    No screenshots available
    Downloads: 320  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Pritchard Musonda | More programs
    Perl Artistic License / FREE
    October 20th, 2008, 11:56 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Net::WhoisNG description

    Perl extension for whois and parsing

    Net::WhoisNG is a Perl extension for whois and parsing.

    SYNOPSIS

     use Net::WhoisNG;
     my $w=new Net::WhoisNG($domain);
     if(!$w->lookUp()){
     print "Domain not Found
    ";
     exit;
     }
     # If lookup is successful, record is parsed and ready for use


    Methods

     Single Value properties return respective scalars from their getXX methods.
     The available single value getXX method are getExpirationDate(), getLastUpdated(),
     getCreatedDate(), getStatus().

     my $exp_date=$w->getExpirationDate();

     Obtaining name servers is done with getNameServers() which returns a reference to an
     array of name servers.

     my $t_ns=$w->getNameServers();
     my @ns=@$t_ns;

     Contacts are implemeted as a person object.

     my $contact=$w->getPerson($type);

     'type' is one of (admin,tech,registrant,bill)

     The Person Object implements several methods to obtain properties of the contact

     $contact->getCredentials(); #Returns a ref to an array of contact info for $type

     getCredentials() was implemeted to return an unparsed set of info about a contact beacause some
     whois servers are so irregular in their formatting that it was a impractical to
     parse the contact info further. Where available such as with .org and .info the following methods work.

     getName(), getOrganization(), getState(), getPostalCode, getCountry(), getEmail(),
     getStreet(), getPhone(), getFax()

     you can get an XML representation of the Data if you the the optional XML::simple module by calling
     $w->getXML();


    Whois Next Generation. Whois lookup module alternative to Net::Whois

    This module is used to lookup whois information on domains.

    This version supports the com, net, org, info, biz, us and edu TLDs. Rapidly implementing other TLDs.

    next in line .co.uk .org.uk .net.uk. I think these all have the same format so will only need one implementation. let me know which ones you'd want implemented sooner than others.

    The module starts by examinig the extension and setting the appropriate whois server. The whois server URL is constructed as $tld.whois-servers.net. The method lookUp() then tries to connect and query the server. It then hands over to a parser and returns 1 if successful or 0 otherwise. U can then obtain various properties using methods listed above. Note that not all properties will be defined for every domain.


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    whois interface | Perl module | whois | parsing | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM