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',