Compare commits

..

3 Commits

Author SHA1 Message Date
Matthew Saunders Brown
ab6324f501 suppress errors if DNS_NS lookup fails - often happens temporarily after adding new domain 2024-02-16 11:09:34 -08:00
Matthew Saunders Brown
d7d985b1b5 add note about potential dns cache issue when adding new domain 2024-02-16 11:07:53 -08:00
Matthew Saunders Brown
af68a2161f remove extra linebreak 2024-02-16 11:06:49 -08:00
3 changed files with 3 additions and 2 deletions

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

View File

@ -49,4 +49,3 @@ $f3->set('ONERROR',function($f3){
});
$f3->run();

View File

@ -31,6 +31,8 @@
<repeat group="{{ @ns_info_array.defaults_ns_array }}" value="{{ @nameserver }}">
<b>{{ @nameserver }}</b><br>
</repeat>
Note that if DNS for this domain was just added this could simply be a cache issue.<br>
Wait a few minutes and come back to this page to see if the issue clears up.
</check>
<check if="{{ @ns_info_array.status=='Error' }}">
There was an error verifying the Namservers for {{ @ns_info_array.zone }}.<br>