suppress errors if DNS_NS lookup fails - often happens temporarily after adding new domain
This commit is contained in:
parent
d7d985b1b5
commit
ab6324f501
|
@ -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'];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user