kevinoo / phpWhois

phpWhois general repository
https://phpwhois.pw
GNU General Public License v2.0
11 stars 3 forks source link

OrgHandler not parsing rawdata for expiry and registrar info #3

Open tmuka opened 1 year ago

tmuka commented 1 year ago

Thanks for your hard work on this lib!

I noticed .org domains don't seem to be returning regrinfo/domain/expires dates or regrinfo/registrar even though it does exist in the rawdata. Below is an example i'm seeing consistently with .org domains on both the 6.3.0 release and the dev-main.

rawdata->Array
 0->This domain is protected by the Registry Lock service. If you are the registrant and wish to take action on this lock, please contact your registrar.
 1->
 2->Domain Name: icann.org
 3->Registry Domain ID: 628dbbcb4edc464b9401cbadea0a08b2-LROR
 4->Registrar WHOIS Server: http://whois.godaddy.com
 5->Registrar URL: http://www.whois.godaddy.com
 6->Updated Date: 2023-02-14T22:18:25Z
 7->Creation Date: 1998-09-14T04:00:00Z
 8->Registry Expiry Date: 2027-12-07T17:04:26Z
 9->Registrar: GoDaddy.com, LLC
 10->Registrar IANA ID: 146
 11->Registrar Abuse Contact Email: abuse@godaddy.com
 12->Registrar Abuse Contact Phone: +1.4806242505
 13->Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited
 14->Domain Status: serverDeleteProhibited https://icann.org/epp#serverDeleteProhibited
 15->Domain Status: clientRenewProhibited https://icann.org/epp#clientRenewProhibited
 16->Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
 17->Domain Status: serverTransferProhibited https://icann.org/epp#serverTransferProhibited
 18->Domain Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited
 19->Domain Status: serverUpdateProhibited https://icann.org/epp#serverUpdateProhibited
 20->Registry Registrant ID: REDACTED FOR PRIVACY
 21->Registrant Name: REDACTED FOR PRIVACY
 22->Registrant Organization: ICANN
 23->Registrant Street: REDACTED FOR PRIVACY
 24->Registrant City: REDACTED FOR PRIVACY
 25->Registrant State/Province: California
 26->Registrant Postal Code: REDACTED FOR PRIVACY
 27->Registrant Country: US
 28->Registrant Phone: REDACTED FOR PRIVACY
 29->Registrant Phone Ext: REDACTED FOR PRIVACY
 30->Registrant Fax: REDACTED FOR PRIVACY
 31->Registrant Fax Ext: REDACTED FOR PRIVACY
 32->Registrant Email: Please query the RDDS service of the Registrar of Record identified in this output for information on how to contact the Registrant, Admin, or Tech contact of the queried domain name.
 33->Registry Admin ID: REDACTED FOR PRIVACY
 34->Admin Name: REDACTED FOR PRIVACY
 35->Admin Organization: REDACTED FOR PRIVACY
 36->Admin Street: REDACTED FOR PRIVACY
 37->Admin City: REDACTED FOR PRIVACY
 38->Admin State/Province: REDACTED FOR PRIVACY
 39->Admin Postal Code: REDACTED FOR PRIVACY
 40->Admin Country: REDACTED FOR PRIVACY
 41->Admin Phone: REDACTED FOR PRIVACY
 42->Admin Phone Ext: REDACTED FOR PRIVACY
 43->Admin Fax: REDACTED FOR PRIVACY
 44->Admin Fax Ext: REDACTED FOR PRIVACY
 45->Admin Email: Please query the RDDS service of the Registrar of Record identified in this output for information on how to contact the Registrant, Admin, or Tech contact of the queried domain name.
 46->Registry Tech ID: REDACTED FOR PRIVACY
 47->Tech Name: REDACTED FOR PRIVACY
 48->Tech Organization: REDACTED FOR PRIVACY
 49->Tech Street: REDACTED FOR PRIVACY
 50->Tech City: REDACTED FOR PRIVACY
 51->Tech State/Province: REDACTED FOR PRIVACY
 52->Tech Postal Code: REDACTED FOR PRIVACY
 53->Tech Country: REDACTED FOR PRIVACY
 54->Tech Phone: REDACTED FOR PRIVACY
 55->Tech Phone Ext: REDACTED FOR PRIVACY
 56->Tech Fax: REDACTED FOR PRIVACY
 57->Tech Fax Ext: REDACTED FOR PRIVACY
 58->Tech Email: Please query the RDDS service of the Registrar of Record identified in this output for information on how to contact the Registrant, Admin, or Tech contact of the queried domain name.
 59->Name Server: ns.icann.org
 60->Name Server: a.icann-servers.net
 61->Name Server: b.icann-servers.net
 62->Name Server: c.icann-servers.net
 63->DNSSEC: signedDelegation
 64->URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/
 65->>>> Last update of WHOIS database: 2023-09-07T13:21:16Z <<<
 66->
 67->For more information on Whois status codes, please visit https://icann.org/epp
 68->
 69->Terms of Use: Access to Public Interest Registry WHOIS information is provided to assist persons in determining the contents of a domain name registration record in the Public Interest Registry registry database. The data in this record is provided by Public Interest Registry for informational purposes only, and Public Interest Registry does not guarantee its accuracy. This service is intended only for query-based access. You agree that you will use this data only for lawful purposes and that, under no circumstances will you use this data to (a) allow, enable, or otherwise support the transmission by e-mail, telephone, or facsimile of mass unsolicited, commercial advertising or solicitations to entities other than the data recipient's own existing customers; or (b) enable high volume, automated, electronic processes that send queries or data to the systems of Registry Operator, a Registrar, or Identity Digital except as reasonably necessary to register domain names or modify existing registrations. All rights reserved. Public Interest Registry reserves the right to modify these terms at any time. By submitting this query, you agree to abide by this policy.  The Registrar of Record identified in this output may have an RDDS service that can be queried for additional information on how to contact the Registrant, Admin, or Tech contact of the queried domain name.
regyinfo->Array
 servers->Array
  0->Array
   server->whois.pir.org
   args->icann.org
   port->43
 type->domain
regrinfo->Array
 domain->Array
  name->icann.org
  nserver->Array
   a.icann-servers.net->199.43.135.53
   b.icann-servers.net->199.43.133.53
   c.icann-servers.net->199.43.134.53
   ns.icann.org->199.4.138.53
 registered->yes

hope this helps!