From 8d4cdcf601568441c3aa32814a5f435749fcef98 Mon Sep 17 00:00:00 2001 From: Subhodip Ghosh Date: Tue, 27 Jan 2026 13:52:31 +0530 Subject: [PATCH] add CORS --- .hta_slug/dns-tools-get-a-record.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.hta_slug/dns-tools-get-a-record.php b/.hta_slug/dns-tools-get-a-record.php index 5594825..697fa70 100644 --- a/.hta_slug/dns-tools-get-a-record.php +++ b/.hta_slug/dns-tools-get-a-record.php @@ -68,14 +68,7 @@ $lookupTimeMs = round((microtime(true) - $startTime) * 1000, 2); // ------------------------------- // Resolver info // ------------------------------- -$resolver = 'system'; -$resolvConf = '/etc/resolv.conf'; -if (is_readable($resolvConf)) { - $content = file_get_contents($resolvConf); - if (preg_match('/nameserver\s+([^\s]+)/', $content, $m)) { - $resolver = $m[1]; - } -} +$resolver = 'hosting-default'; // ------------------------------- // Provider detection (heuristic)