首页 > 解决方案 > whois 查找 php 响应数据中的 regrinfo 和 regyinfo 是什么?它们与 php 响应数据中的 raw_data 有何不同?

问题描述

我正在尝试使用 phpWhois 检索域的信息,以了解域的注册状态、注册商、创建和到期日期。

要检索域的信息,

use phpWhois\Whois;
----
----
$domainDetails = $this->whois->lookup($domain, true);

例如: towerhealth.org

结果,

Array
(
    [regrinfo] => Array
        (
            [domain] => Array
                (
                    [name] => towerhealth.org
                    [handle] => D402200000002315693-LROR
                    [changed] => 2019-04-15
                    [created] => 2017-05-04
                    [expires] => 2024-05-04
                    [sponsor] => GoDaddy.com, LLC
                    [status] => Array
                        (
                            [0] => clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited
                            [1] => clientRenewProhibited https://icann.org/epp#clientRenewProhibited
                            [2] => clientTransferProhibited https://icann.org/epp#clientTransferProhibited
                            [3] => clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited
                        )

                    [nserver] => Array
                        (
                            [pdns11.domaincontrol.com] => 97.74.111.55
                            [pdns12.domaincontrol.com] => 173.201.79.55
                        )

                )

            [owner] => Array
                (
                    [organization] => Domains By Proxy, LLC
                    [address] => Array
                        (
                            [state] => Arizona
                            [country] => US
                        )

                )

            [registered] => yes
        )

    [regyinfo] => Array
        (
            [referrer] => http://www.pir.org/
            [registrar] => Public Interest Registry
            [servers] => Array
                (
                    [0] => Array
                        (
                            [server] => whois.pir.org
                            [args] => towerhealth.org
                            [port] => 43
                        )

                )

            [type] => domain
        )

    [rawdata] => Array
        (
            [0] => Domain Name: TOWERHEALTH.ORG
            [1] => Registry Domain ID: D402200000002315693-LROR
            [2] => Registrar WHOIS Server: whois.godaddy
            [3] => Registrar URL: http://www.whois.godaddy.com
            [4] => Updated Date: 2019-04-15T13:56:05Z
            [5] => Creation Date: 2017-05-04T21:12:23Z
            [6] => Registry Expiry Date: 2024-05-04T21:12:23Z
            [7] => Registrar Registration Expiration Date:
            [8] => Registrar: GoDaddy.com, LLC
            [9] => Registrar IANA ID: 146
            [10] => Registrar Abuse Contact Email: abuse@godaddy.com
            [11] => Registrar Abuse Contact Phone: +1.4806242505
            [12] => Reseller:
            [13] => Domain Status: clientDeleteProhibited https://icann.org/epp#clientDeleteProhibited
            [14] => Domain Status: clientRenewProhibited https://icann.org/epp#clientRenewProhibited
            [15] => Domain Status: clientTransferProhibited https://icann.org/epp#clientTransferProhibited
            [16] => Domain Status: clientUpdateProhibited https://icann.org/epp#clientUpdateProhibited
            [17] => Registrant Organization: Domains By Proxy, LLC
            [18] => Registrant State/Province: Arizona
            [19] => Registrant Country: US
            [20] => Name Server: PDNS11.DOMAINCONTROL.COM
            [21] => Name Server: PDNS12.DOMAINCONTROL.COM
            [22] => DNSSEC: unsigned
            [23] => URL of the ICANN Whois Inaccuracy Complaint Form https://www.icann.org/wicf/)
            [24] => >>> Last update of WHOIS database: 2021-07-29T14:01:31Z <<<
            [25] => 
            [26] => For more information on Whois status codes, please visit https://icann.org/epp
            [27] => 
            [28] => 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 Afilias 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.
            [29] => 
            [30] => 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]包含Public Interest Registry[registrar]Registrar WHOIS 服务器[raw_data]为whois.godaddy 。谁能解释我为什么注册商详细信息与注册商 WHOIS 服务器信息不同?[regyinfo][rawdata]

在某些情况下,结果是,

[regyinfo] => Array
        (
            [registrar] => Network Solutions, LLC
            [servers] => Array
                (
                    [0] => Array
                        (
                            [server] => net.whois-servers.net
                            [args] => domain =swhealth.net
                            [port] => 43
                        )

                )

            [type] => domain
        )

提前致谢。

标签: phpwhoisregistrar

解决方案


如您在代码中所见,在 phpWhois 中[regyinfo]是硬编码的:https ://github.com/sparc/phpWhois.org/blob/master/src/whois.org.php第 42 行和第 43 行。

我认为这是因为“公共利益注册机构”是.orggTLD 的顶级注册机构,而 godaddy(在这种情况下)是向其用户分发域的注册商。

我希望这回答了你的问题。作为参考,请查看pir 维基百科条目及其网站


推荐阅读