From 430bd81cb95e7aa8a09eaebf0b44a2ab6fc6ec6f Mon Sep 17 00:00:00 2001 From: Hosteroid Date: Tue, 21 Oct 2025 14:40:39 +0300 Subject: [PATCH] Expand WHOIS domain availability checks Added 'does not exist' and 'queried object does not exist' to the regex for detecting available domains in WHOIS responses, improving coverage for more registrar messages. --- app/Services/WhoisService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Services/WhoisService.php b/app/Services/WhoisService.php index a3c4a09..6c48fe4 100644 --- a/app/Services/WhoisService.php +++ b/app/Services/WhoisService.php @@ -495,7 +495,7 @@ class WhoisService // Check if domain is not found/available $whoisDataLower = strtolower($whoisData); - if (preg_match('/not found|no match|no entries found|no data found|domain not found|no such domain|not registered|available for registration/i', $whoisDataLower)) { + if (preg_match('/not found|no match|no entries found|no data found|domain not found|no such domain|not registered|available for registration|does not exist|queried object does not exist/i', $whoisDataLower)) { $data['status'][] = 'AVAILABLE'; $data['registrar'] = 'Not Registered'; return $data;