suppress errors if DNS_NS lookup fails - often happens temporarily after adding new domain

This commit is contained in:
Matthew Saunders Brown 2024-02-16 11:09:34 -08:00
parent d7d985b1b5
commit ab6324f501

View File

@ -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'];
}