Skip Menu |

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

Report information
The Basics
Id: 2197
Status: open
Priority: 0/
Queue: Net-XWhois

People
Owner: Nobody in particular
Requestors: jmiller [...] purifieddata.net
Cc:
AdminCc:

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



Subject: .org tld whois registry moved to PIR. Parser needed, patch included.
Net-XWhois-0.90 and below do not query the correct whois registry for .org domains. This affects all perl and OS versions running Net-XWhois-0.90 and lower. Other tld's still query properly. The registry was officially trasfered to PIR (whois.publicinterestregistry.net) as of Jan 26, 2003. Included in the patch is the updated hash for the whois pointer for .org, and a new parser for their whois responce format.
--- XWhois.pm Sat Mar 8 21:24:43 2003 +++ XWhois.pm.bak Sat Mar 8 19:49:53 2003 @@ -16,7 +16,6 @@ # # Changes: # -# 03/08/2003 jmiller Added new .org PIR registy and parser # 08/05/2002 rwoodard Merged in changes from XWhois discussion forum on # sourceforge.net; made additional changes as needed # to implement reverse lookups of IP addresses @@ -158,26 +157,6 @@ net_handle => '\((NETBLK\S+)\)', country => '\n\s+(\S+)\n\n', }, - - PIR => { - name => 'Domain Name:(\S+)', - status => 'Status:(.*?)\s*\n', - registrant => 'Registrant (?:Name|Street1|Street2|City|Postal Code|Country|Email):(.*?)\s*\n', - nameservers => 'Name Server:(\S+)', - contact_admin => 'Admin (?:Name|Street1|Street2|City|Postal Code|Country|Email):(.*?)\s*\n', - contact_tech => 'Tech (?:Name|Street1|Street2|City|Postal Code|Country|Email):(.*?)\s*\n', - contact_zone => 'Admin (?:Name|Street1|Street2|City|Postal Code|Country|Email):(.*?)\s*\n', - contact_billing => 'Billing (?:Name|Street1|Street2|City|Postal Code|Country|Email):(.*?)\s*\n', - contact_emails => '(?:Registrant|Admin|Billing|Tech) Email:(\S+\@\S+)', - contact_handles => '\(([^\W\d]+\d+)\)', - domain_handles => '\((\S*?-DOM)\)', - org_handles => '\((\S*?-ORG)\)', - not_registered => 'NOT FOUND', -# forwardwhois => 'Whois Server:(.*?)\s*\n', - registrar => 'Referral URL:(.*?)\s*\n', - reg_date => 'Created On:(.*?)\s*\n', - exp_date => 'Expiration Date:(.*?)\s*\n', - }, INTERNIC => { name => '[\n\r\f]+\s*[Dd]omain [Nn]ame[:\.]*\s+(\S+)', @@ -360,7 +339,6 @@ ); my %WHOIS_PARSER = ( - 'whois.publicinterestregistry.net' => 'PIR', 'whois.ripe.net' => 'RPSL', 'whois.nic.mil' => 'INTERNIC', 'whois.nic.ad.jp' => 'JAPAN', @@ -419,7 +397,7 @@ 'mt' => 'whois.ripe.net', 'mx' => 'whois.nic.mx', 'net' => 'whois.internic.net', 'nl' => 'whois.ripe.net', 'no' => 'whois.norid.no', 'nz' => 'whois.domainz.net.nz', - 'org' => 'whois.publicinterestregistry.net', + 'org' => 'whois.internic.net', 'pl' => 'whois.ripe.net', 'pt' => 'whois.ripe.net', 'ro' => 'whois.ripe.net', 'ru' => 'whois.ripe.net', 'se' => 'whois.ripe.net', 'sg' => 'whois.nic.net.sg',
Fixed by 0.94.
On Sat Mar 08 21:43:13 2003, guest wrote: Show quoted text
> Net-XWhois-0.90 and below do not query the correct whois registry for > .org domains. > This affects all perl and OS versions running Net-XWhois-0.90 and > lower. Other tld's still query properly. > The registry was officially trasfered to PIR > (whois.publicinterestregistry.net) as of Jan 26, 2003. > > Included in the patch is the updated hash for the whois pointer for > .org, and a new parser for their whois responce format.
Patch doesn't actually point .org queries to whois.pir.org like it should -- attaching correct patch.
--- XWhois.pm.orig 2009-06-19 14:20:41.000000000 -0700 +++ XWhois.pm 2009-06-19 14:28:27.000000000 -0700 @@ -347,6 +347,7 @@ 'whois.nic.ch' => 'RIPE_CH', 'whois.twnic.net' => 'TWNIC', 'whois.internic.net' => 'INTERNIC', + 'whois.pir.org' => 'INTERNIC', 'whois.aunic.net' => 'RIPE', 'whois.cdnnet.ca' => 'CANADA', 'whois.ja.net' => 'UKERNA', @@ -397,7 +398,7 @@ 'mt' => 'whois.ripe.net', 'mx' => 'whois.nic.mx', 'net' => 'whois.internic.net', 'nl' => 'whois.ripe.net', 'no' => 'whois.norid.no', 'nz' => 'whois.domainz.net.nz', - 'org' => 'whois.internic.net', + 'org' => 'whois.pir.org', 'pl' => 'whois.ripe.net', 'pt' => 'whois.ripe.net', 'ro' => 'whois.ripe.net', 'ru' => 'whois.ripe.net', 'se' => 'whois.ripe.net', 'sg' => 'whois.nic.net.sg',