io-developer / php-whois

PHP WHOIS provides parsed and raw whois lookup of domains and ASN routes. PHP 8.0 compatible (5.4+ old versions)
MIT License
437 stars 117 forks source link

servers for .one #173

Closed Smashr closed 1 year ago

Smashr commented 2 years ago

Availability check .one tlds always returns as "available".

Thanks.

bessone commented 2 years ago

Are you sure? Have you tried if the whois.nic.one server responds from that machine's shell?

I did a quick test with this code:

use Iodev\Whois\Factory;

$whois = Factory::get()->createWhois();

if (!$whois->isDomainAvailable("bess.one")) {
    print "Domain is NOT available!";
}

$response = $whois->lookupDomain("bess.one");
print $response->text;

$info = $whois->loadDomainInfo("bess.one");
print_r([
    'Domain created' => date("Y-m-d", $info->creationDate),
    'Domain expires' => date("Y-m-d", $info->expirationDate),
    'Domain owner' => $info->owner,
]);

and it works, giving this result:

Domain is NOT available!

Domain Name: bess.one
Registry Domain ID: D4B816BA688E54FE6BFE03E3603E2C803-NSR
Registrar WHOIS Server: WHOIS.ENOM.COM
Registrar URL: WWW.ENOM.COM
Updated Date: 2021-07-19T08:12:29.91Z
Creation Date: 2018-07-17T08:12:00.00Z
Registrar Registration Expiration Date: 2022-07-17T08:12:10.00Z
Registrar: ENOM, INC.
Registrar IANA ID: 48
Domain Status: clientTransferProhibited https://www.icann.org/epp#clientTransferProhibited
Registrant Name: Proxy Protection LLC (770148773)
Registrant Organization: Proxy Protection LLC
Registrant Street: 417 Associated Rd #324
Registrant Street: C/O bess.one
Registrant City: Brea
Registrant State/Province: CA
Registrant Postal Code: 92821
Registrant Country: US
Registrant Phone: +1.7147064182
Registrant Phone Ext:
Registrant Fax:
Registrant Email: DreamHostDoNotDelete@proxy.dreamhost.com
Admin Name: Proxy Protection LLC
Admin Organization: Proxy Protection LLC
Admin Street: 417 Associated Rd #324
Admin Street: C/O bess.one
Admin City: Brea
Admin State/Province: CA
Admin Postal Code: 92821
Admin Country: US
Admin Phone: +1.7147064182
Admin Phone Ext:
Admin Fax:
Admin Email: DreamHostDoNotDelete@proxy.dreamhost.com
Tech Name: Proxy Protection LLC
Tech Organization: Proxy Protection LLC
Tech Street: 417 Associated Rd #324
Tech Street: C/O bess.one
Tech City: Brea
Tech State/Province: CA
Tech Postal Code: 92821
Tech Country: US
Tech Phone: +1.7147064182
Tech Phone Ext:
Tech Fax:
Tech Email: DreamHostDoNotDelete@proxy.dreamhost.com
Name Server: NS1.DREAMHOST.COM
Name Server: NS2.DREAMHOST.COM
Name Server: NS3.DREAMHOST.COM
DNSSEC: unsigned
Registrar Abuse Contact Email: ABUSE@ENOM.COM
Registrar Abuse Contact Phone: +1.4259744689
URL of the ICANN WHOIS Data Problem Reporting System: HTTP://WDPRS.INTERNIC.NET/
>>> Last update of WHOIS database: 2021-12-30T09:05:36.00Z <<<

For more information on Whois status codes, please visit https://icann.org/epp

The data in this whois database is provided to you for information
purposes only, that is, to assist you in obtaining information about or
related to a domain name registration record. We make this information
available "as is," and do 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)
enable high volume, automated, electronic processes that stress or load
this whois database system providing you this information; or (2) allow,
enable, or otherwise support the transmission of mass unsolicited,
commercial advertising or solicitations via direct mail, electronic
mail, or by telephone. The compilation, repackaging, dissemination or
other use of this data is expressly prohibited without prior written
consent from us.

We reserve the right to modify these terms at any time. By submitting
this query, you agree to abide by these terms.
Version 6.3 4/3/2002
Array
(
    [Domain created] => 2018-07-17
    [Domain expires] => 2022-07-17
    [Domain owner] => Proxy Protection LLC
)
io-developer commented 1 year ago

Maybe there was some connection trouble..