From ab6324f501960f1b5951092e341956b7defe277b Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Fri, 16 Feb 2024 11:09:34 -0800 Subject: [PATCH] suppress errors if DNS_NS lookup fails - often happens temporarily after adding new domain --- panel/classes/Panel/Vdns.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panel/classes/Panel/Vdns.php b/panel/classes/Panel/Vdns.php index a644392..f05d0c2 100644 --- a/panel/classes/Panel/Vdns.php +++ b/panel/classes/Panel/Vdns.php @@ -70,7 +70,7 @@ class Vdns extends \Panel { global $f3; $ns_array = array(); - if ($dns_ns_array = dns_get_record("$zone", DNS_NS)) { + if ($dns_ns_array = @dns_get_record("$zone", DNS_NS)) { foreach ($dns_ns_array as $record_array) { $ns_array[] = $record_array['target']; }