From 9a4575a8dd8c74e9452f54ccecc0649f37101723 Mon Sep 17 00:00:00 2001 From: samaphp Date: Thu, 15 Aug 2019 12:34:52 +0300 Subject: [PATCH 1/2] Support some gTLDs and ccTLDs. #1 --- src/Phois/Whois/whois.servers.json | 62 +++++++++++++++++++++++++++++- 1 file changed, 61 insertions(+), 1 deletion(-) diff --git a/src/Phois/Whois/whois.servers.json b/src/Phois/Whois/whois.servers.json index f270d3a..6ac700d 100644 --- a/src/Phois/Whois/whois.servers.json +++ b/src/Phois/Whois/whois.servers.json @@ -1,4 +1,64 @@ { + "app": [ + "whois.nic.google", + "Domain not found." + ], + "run": [ + "whois.nic.run", + "available" + ], + "plus": [ + "whois.nic.plus", + "available" + ], + "ai": [ + "whois.nic.ai", + "available" + ], + "live": [ + "whois.nic.live", + "available" + ], + "vip": [ + "whois.nic.vip", + "available" + ], + "studio": [ + "whois.nic.studio", + "available" + ], + "group": [ + "whois.nic.group", + "available" + ], + "storage": [ + "whois.nic.storage", + "available" + ], + "date": [ + "whois.nic.date", + "No Data Found" + ], + "ist": [ + "whois.afilias-srs.net", + "NOT FOUND" + ], + "fan": [ + "whois.nic.fan", + "Domain not found." + ], + "film": [ + "whois.nic.film", + "No Data Found" + ], + "cloud": [ + "whois.nic.cloud", + "No Data Found" + ], + "shop": [ + "whois.nic.shop", + "The queried object does not exist: DOMAIN NOT FOUND" + ], "abogado": [ "whois-dub.mm-registry.com", "is available for registration" @@ -3907,4 +3967,4 @@ "whois.ksregistry.net", "not found..." ] -} \ No newline at end of file +} From a163482a1b21418b4748e65301cbe364a388cb04 Mon Sep 17 00:00:00 2001 From: samaphp Date: Thu, 15 Aug 2019 12:43:06 +0300 Subject: [PATCH 2/2] Convert domain name in lowercase. (from PR 35). --- src/Phois/Whois/Whois.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Phois/Whois/Whois.php b/src/Phois/Whois/Whois.php index 739de3c..683660c 100644 --- a/src/Phois/Whois/Whois.php +++ b/src/Phois/Whois/Whois.php @@ -17,7 +17,7 @@ class Whois */ public function __construct($domain) { - $this->domain = $domain; + $this->domain = strtolower($domain); // check $domain syntax and split full domain name on subdomain and TLDs if ( preg_match('/^([\p{L}\d\-]+)\.((?:[\p{L}\-]+\.?)+)$/ui', $this->domain, $matches)