jsmitty12 / phpWhois

phpWhois general repository
GNU General Public License v2.0
56 stars 20 forks source link

Not getting detailed owner information #83

Closed h888t closed 5 months ago

h888t commented 3 years ago

Not sure if this is expected;

     +codeVersion: "5.0.0-dev",
     +version: "phpWhois v5.0.0-dev",
   }
>>> $whois->deepWhois = true;
=> true
>>> $result = $whois->lookup('example.com');
=> [
     "regrinfo" => [
       "domain" => [
         "name" => "example.com",
         "changed" => "2020-08-14",
         "created" => "1995-08-14",
         "expires" => "2021-08-13",
         "status" => [
           "clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited",
           "clientTransferProhibited https://icann.org/epp#clientTransferProhibited",
           "clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited",
         ],
         "nserver" => [
           "a.iana-servers.net" => "199.43.135.53",
           "b.iana-servers.net" => "199.43.133.53",
         ],
       ],
       "registered" => "yes",
     ],
     "regyinfo" => [
       "registrar" => "RESERVED-Internet Assigned Numbers Authority",
       "servers" => [
         [
           "server" => "com.whois-servers.net",
           "args" => "domain =example.com",
           "port" => 43,
         ],
       ],
       "type" => "domain",
     ],
     "rawdata" => [
       "   Domain Name: EXAMPLE.COM\r",
       "   Registry Domain ID: 2336799_DOMAIN_COM-VRSN\r",
       "   Registrar WHOIS Server: whois.iana.org\r",
       "   Registrar URL: http://res-dom.iana.org\r",
       "   Updated Date: 2020-08-14T07:02:37Z\r",
       "   Creation Date: 1995-08-14T04:00:00Z\r",
       "   Registry Expiry Date: 2021-08-13T04:00:00Z\r",
       "   Registrar: RESERVED-Internet Assigned Numbers Authority\r",
       "   Registrar IANA ID: 376\r",
       "   Registrar Abuse Contact Email:\r",
       "   Registrar Abuse Contact Phone:\r",
       "   Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited\r",
       "   Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited\r",
       "   Domain Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited\r",
       "   Name Server: A.IANA-SERVERS.NET\r",
       "   Name Server: B.IANA-SERVERS.NET\r",
       "   DNSSEC: signedDelegation\r",
       "   DNSSEC DS Data: 31589 8 1 3490A6806D47F17A34C29E2CE80E8A999FFBE4BE\r",
       "   DNSSEC DS Data: 31589 8 2 CDE0D742D6998AA554A92D890F8184C698CFAC8A26FA59875A990C03E576343C\r",
       "   DNSSEC DS Data: 43547 8 1 B6225AB2CC613E0DCA7962BDC2342EA4F1B56083\r",
       "   DNSSEC DS Data: 43547 8 2 615A64233543F66F44D68933625B17497C89A70E858ED76A2145997EDF96A918\r",
       "   DNSSEC DS Data: 31406 8 1 189968811E6EBA862DD6C209F75623D8D9ED9142\r",
       "   DNSSEC DS Data: 31406 8 2 F78CF3344F72137235098ECBBD08947C2C9001C7F6A085A17F518B5D8F6B916D\r",
       "   URL of the ICANN Whois Inaccuracy Complaint Form: https://www.icann.org/wicf/\r",
       ">>> Last update of whois database: 2020-12-22T07:59:27Z <<<\r",
       "\r",
       "For more information on Whois status codes, please visit https://icann.org/epp\r",
       "\r",
       "NOTICE: The expiration date displayed in this record is the date the\r",
       "registrar's sponsorship of the domain name registration in the registry is\r",
       "currently set to expire. This date does not necessarily reflect the expiration\r",
       "date of the domain name registrant's agreement with the sponsoring\r",
       "registrar.  Users may consult the sponsoring registrar's Whois database to\r",
       "view the registrar's reported date of expiration for this registration.\r",
       "\r",
       "TERMS OF USE: You are not authorized to access or query our Whois\r",
       "database through the use of electronic processes that are high-volume and\r",
       "automated except as reasonably necessary to register domain names or\r",
       "modify existing registrations; the Data in VeriSign Global Registry\r",
       "Services' ("VeriSign") Whois database is provided by VeriSign for\r",
       "information purposes only, and to assist persons in obtaining information\r",
       "about or related to a domain name registration record. VeriSign does not\r",
       "guarantee its accuracy. By submitting a Whois query, you agree to abide\r",
       "by the following terms of use: You agree that you may use this Data only\r",
       "for lawful purposes and that under no circumstances will you use this Data\r",
       "to: (1) allow, enable, or otherwise support the transmission of mass\r",
       "unsolicited, commercial advertising or solicitations via e-mail, telephone,\r",
       "or facsimile; or (2) enable high volume, automated, electronic processes\r",
       "that apply to VeriSign (or its computer systems). The compilation,\r",
       "repackaging, dissemination or other use of this Data is expressly\r",
       "prohibited without the prior written consent of VeriSign. You agree not to\r",
       "use electronic processes that are automated and high-volume to access or\r",
       "query the Whois database except as reasonably necessary to register\r",
       "domain names or modify existing registrations. VeriSign reserves the right\r",
       "to restrict your access to the Whois database in its sole discretion to ensure\r",
       "operational stability.  VeriSign may restrict or terminate your access to the\r",
       "Whois database for failure to abide by these terms of use. VeriSign\r",
       "reserves the right to modify these terms at any time.\r",
       "\r",
       "The Registry database contains ONLY .COM, .NET, .EDU domains and\r",
       "Registrars.\r",
     ],
   ]
>>> 

How can I retrieve owner/admin/technical contact info?

If I compare to querying an Israeli domain, this information appears to be parsed;

>>> $whois->lookup('artphone.co.il');
PHP Warning:  A non-numeric value encountered in /var/www/vendor/jsmitty12/phpwhois/src/whois.parser.php on line 905
PHP Warning:  A non-numeric value encountered in /var/www/vendor/jsmitty12/phpwhois/src/whois.parser.php on line 905
PHP Warning:  A non-numeric value encountered in /var/www/vendor/jsmitty12/phpwhois/src/whois.parser.php on line 905
PHP Warning:  A non-numeric value encountered in /var/www/vendor/jsmitty12/phpwhois/src/whois.parser.php on line 905
=> [
     "regrinfo" => [
       "disclaimer" => [
         "The data in the WHOIS database of the .il registry is provided",
         "by ISOC-IL for information purposes, and to assist persons in",
         "obtaining information about or related to a domain name",
         "registration record. ISOC-IL does not guarantee its accuracy.",
         "By submitting a WHOIS query, you agree that you will use this",
         "Data only for lawful purposes and that, under no circumstances",
         "will you use this Data to: (1) allow, enable, or otherwise",
         "support the transmission of mass unsolicited, commercial",
         "advertising or solicitations via e-mail (spam);",
         "or  (2) enable high volume, automated, electronic processes that",
         "apply to ISOC-IL (or its systems).",
         "ISOC-IL reserves the right to modify these terms at any time.",
         "By submitting this query, you agree to abide by this policy.",
       ],
       "registered" => "yes",
       "admin" => [
         "name" => "Edoard Yegudaev",
         "phone" => "+972 54 7638688",
         "fax" => "+972 54 7638688",
         "email" => "Edoard1987 AT gmail.com",
         "handle" => "BZ-EY1995-IL",
         "changed" => "2000-00-00",
       ],
       "tech" => [
         "name" => "Edoard Yegudaev",
         "phone" => "+972 54 7638688",
         "fax" => "+972 54 7638688",
         "email" => "Edoard1987 AT gmail.com",
         "handle" => "BZ-EY1996-IL",
         "changed" => "2000-00-00",
       ],
       "zone" => [
         "name" => "Edoard Yegudaev",
         "phone" => "+972 54 7638688",
         "fax" => "+972 54 7638688",
         "email" => "Edoard1987 AT gmail.com",
         "handle" => "BZ-EY1997-IL",
         "changed" => "2000-00-00",
       ],
       "domain" => [
         "query" => "artphone.co.il",
         "reg-name" => "artphone",
         "domain" => "artphone.co.il",
         "descr" => [
           "Artphone",
           "NATANZON 28",
           "HAIFA",
           "Israel",
         ],
         "phone" => "+972 54 7638688",
         "fax" => "+972 54 7638688",
         "email" => "Edoard1987 AT gmail.com",
         "nserver" => [
           "ns1.bezeqint.net" => "62.219.128.128",
           "ns2.bezeqint.net" => "212.179.7.7",
           "ns3.bezeqint.net" => "192.115.132.132",
         ],
         "validity" => "19-10-2021",
         "dnssec" => "unsigned",
         "status" => "Transfer Locked",
         "changed" => "2000-00-00",
         "name" => "artphone.co.il",
       ],
     ],
     "regyinfo" => [
       "referrer" => "http://www.isoc.org.il/",
       "registrar" => "ISOC-IL",
       "servers" => [
         [
           "server" => "whois.isoc.org.il",
           "args" => "artphone.co.il",
           "port" => 43,
         ],
       ],
       "type" => "domain",
     ],
     "rawdata" => [
       "",
       "% The data in the WHOIS database of the .il registry is provided",
       "% by ISOC-IL for information purposes, and to assist persons in ",
       "% obtaining information about or related to a domain name ",
       "% registration record. ISOC-IL does not guarantee its accuracy.",
       "% By submitting a WHOIS query, you agree that you will use this",
       "% Data only for lawful purposes and that, under no circumstances",
       "% will you use this Data to: (1) allow, enable, or otherwise ",
       "% support the transmission of mass unsolicited, commercial ",
       "% advertising or solicitations via e-mail (spam); ",
       "% or  (2) enable high volume, automated, electronic processes that ",
       "% apply to ISOC-IL (or its systems).",
       "% ISOC-IL reserves the right to modify these terms at any time.",
       "% By submitting this query, you agree to abide by this policy.",
       " ",
       "query:        artphone.co.il",
       "",
       "reg-name:     artphone",
       "domain:       artphone.co.il",
       "",
       "descr:        Artphone",
       "descr:        NATANZON 28",
       "descr:        HAIFA",
       "descr:        Israel",
       "phone:        +972 54 7638688",
       "fax-no:       +972 54 7638688",
       "e-mail:       Edoard1987 AT gmail.com",
       "admin-c:      BZ-EY1995-IL",
       "tech-c:       BZ-EY1996-IL",
       "zone-c:       BZ-EY1997-IL",
       "nserver:      Ns1.bezeqint.net ",
       "nserver:      Ns2.bezeqint.net ",
       "nserver:      Ns3.bezeqint.net ",
       "validity:     19-10-2021",
       "DNSSEC:       unsigned",
       "status:       Transfer Locked",
       "changed:      domain-registrar AT isoc.org.il 20201019 (Assigned)",
       "",
       "person:       Edoard Yegudaev",
       "address      Artphone",
       "address      NATANZON 28",
       "address      HAIFA",
       "address      Israel",
       "phone:        +972 54 7638688",
       "fax-no:       +972 54 7638688",
       "e-mail:       Edoard1987 AT gmail.com",
       "nic-hdl:      BZ-EY1995-IL",
       "changed:      domain-registrar AT isoc.org.il 20201019",
       "",
       "person:       Edoard Yegudaev",
       "address      Artphone",
       "address      NATANZON 28",
       "address      HAIFA",
       "address      Israel",
       "phone:        +972 54 7638688",
       "fax-no:       +972 54 7638688",
       "e-mail:       Edoard1987 AT gmail.com",
       "nic-hdl:      BZ-EY1996-IL",
       "changed:      domain-registrar AT isoc.org.il 20201019",
       "",
       "person:       Edoard Yegudaev",
       "address      Artphone",
       "address      NATANZON 28",
       "address      HAIFA",
       "address      Israel",
       "phone:        +972 54 7638688",
       "fax-no:       +972 54 7638688",
       "e-mail:       Edoard1987 AT gmail.com",
       "nic-hdl:      BZ-EY1997-IL",
       "changed:      domain-registrar AT isoc.org.il 20201019",
       "",
       "registrar name: Bezeq International Ltd",
       "registrar info: https://www.bezeqint.net/web/domains/search-domain",
       "",
       "% Rights to the data above are restricted by copyright.",
     ],
   ]
e7o-de commented 2 years ago

This might be one reason why you have rawdata in the returned array available. And the rawdata seems to be identical to a command line whois.