Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Net-Whois-Raw CPAN distribution.

Report information
The Basics
Id: 21119
Status: resolved
Priority: 0/
Queue: Net-Whois-Raw

People
Owner: despair [...] cpan.org
Requestors: debolaz [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: (no value)
Fixed in: (no value)



Subject: Net::Whois::Raw makes invalid assumptions
Net::Whois::Raw seems to assume that the only objects available from a whois request are domains and IP addresses and will die if you pass it a text string without a dot. Whois servers has other objects, such as contacts and organization handles. The problem appears to reside in this method: sub split_domname { my ($dom) = @_; my $tld = get_dom_tld( $dom ); my $name; if (uc$tld eq 'IP') { $name = $dom; } else { $dom =~ /(.+?)\.$tld$/ or die "Can't match $tld in $dom"; $name = $1; } return ($name, $tld); } Or am I completely off here...?
It works now. $ perl -MNet::Whois::Raw -e 'print Net::Whois::Raw::whois("REGRU-REG-RIPN", "whois.ripn.net")' % By submitting a query to RIPN's Whois Service % you agree to abide by the following terms of use: % http://www.ripn.net/about/servpol.html#3.2 (in Russian) % http://www.ripn.net/about/en/servpol.html#3.2 (in English). nic-hdl: REGRU-REG-RIPN org: Domain Registrar REG.RU phone: +7 495 5801111 fax-no: +7 495 4915553 e-mail: info@reg.ru www: http://www.reg.ru whois: whois.reg.ru source: TCI Last updated on 2009.12.01 09:06:55 MSK/MSD