if (empty($lookup1) || $allow_none_local_dns_zones) {
$valid = 1;
} else {
$valid = 0;
foreach ($lookup1 as $lrecord) {
if ($lrecord['type'] == 'NS') {
if (in_array($lrecord['target'], $ns_array1)) {
$valid = 1 ;
}
}
}
}
if ($valid==0) {
printf("<p class='alert alert-danger'><strong>Error</strong>: DNS zone already exists on other server. Please contact our support if you plan to transfer this DNS zone to this system. </p>");
return false;
}
if (is_numeric($prefix)) {
printf("<p><font color=red>Error: Numeric zone names are not allowed. Use ENUM port instead. </font>");