|
NAMENet::Whois::Raw - Get Whois information of domains and IP addresses.VERSIONversion 2.99032SYNOPSISuse Net::Whois::Raw; $dominfo = whois('perl.com'); ($dominfo, $whois_server) = whois('funet.fi'); $reginfo = whois('REGRU-REG-RIPN', 'whois.ripn.net'); $arrayref = get_whois('yahoo.co.uk', undef, 'QRY_ALL'); $text = get_whois('yahoo.co.uk', undef, 'QRY_LAST'); ($text, $srv) = get_whois('yahoo.co.uk', undef, 'QRY_FIRST'); $Net::Whois::Raw::OMIT_MSG = 1; # This will attempt to strip several known copyright # messages and disclaimers sorted by servers. # Default is to give the whole response. $Net::Whois::Raw::CHECK_FAIL = 1; # This will return undef if the response matches # one of the known patterns for a failed search, # sorted by servers. # Default is to give the textual response. $Net::Whois::Raw::CHECK_EXCEED = 0 | 1 | 2; # When this option is true, "die" will be called # if connection rate to specific whois server have been # exceeded. # If set to 2, will die in recursive queries too. $Net::Whois::Raw::CACHE_DIR = "/var/spool/pwhois/"; # Whois information will be # cached in this directory. Default is no cache. $Net::Whois::Raw::CACHE_TIME = 60; # Cache files will be cleared after not accessed # for a specific number of minutes. Documents will not be # cleared if they keep get requested for, independent # of disk space. $Net::Whois::Raw::TIMEOUT = 10; # Cancel the request if connection is not made within # a specific number of seconds. @Net::Whois::Raw::SRC_IPS = (11.22.33.44); # List of local IP addresses to # use for WHOIS queries. Addresses will be used used # successively in the successive queries $Net::Whois::Raw::POSTPROCESS{whois.crsnic.net} = \&my_func; # Call to a user-defined subroutine on whois result, # depending on whois-server. # Above is equil to: # ($text, $srv) = whois('example.com'); # $text = my_func($text) if $srv eq 'whois.crsnic.net'; $Net::Whois::Raw::QUERY_SUFFIX = '/e'; # This will add specified suffix to whois query. # It may be used for english output forcing. DESCRIPTIONNet::Whois::Raw queries WHOIS servers about domains. The module supports recursive WHOIS queries. Also queries via HTTP is supported for some TLDs.Setting the variables $OMIT_MSG and $CHECK_FAIL will match the results against a set of known patterns. The first flag will try to omit the copyright message/disclaimer, the second will attempt to determine if the search failed and return undef in such a case. IMPORTANT: these checks merely use pattern matching; they will work on several servers but certainly not on all of them. NAMENet::Whois::Raw — Get Whois information of domains and IP addresses.FUNCTIONS
USER DEFINED FUNCTIONS
AUTHOROriginal author Ariel Brosh schop@cpan.org, Inspired by jwhois.pl available on the net.Since Ariel has passed away in September 2002: Past maintainers Gabor Szabo gabor@perl.org.il, Corris Randall corris@cpan.org, Walery Studennikov despair@cpan.org Current Maintainer: Alexander Nalobin nalobin@cpan.org CREDITSSee file "Changes" in the distribution for the complete list of contributors.CHANGESSee file "Changes" in the distributionNOTESome users complained that the die statements in the module make their CGI scripts crash. Please consult the entries on eval and die on perlfunc about exception handling in Perl.COPYRIGHTCopyright 2000--2002 Ariel Brosh. Copyright 2003--2003 Gabor Szabo. Copyright 2003--2003 Corris Randall. Copyright 2003--now() Walery StudennikovThis package is free software. You may redistribute it or modify it under the same terms as Perl itself. I apologize for any misunderstandings caused by the lack of a clear licence in previous versions. COMMERCIAL SUPPORTNot available anymore.LEGALNotice that registrars forbid querying their whois servers as a part of a search engine, or querying for a lot of domains by script. Also, omitting the copyright information (that was requested by users of this module) is forbidden by the registrars.SEE ALSOpwhois, whois.AUTHORAlexander Nalobin <alexander@nalobin.ru>COPYRIGHT AND LICENSEThis software is copyright (c) 2002-2021 by Alexander Nalobin.This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Visit the GSP FreeBSD Man Page Interface. |