diff --git a/dns_editor.php b/dns_editor.php index 325fe1d7..15687b10 100644 --- a/dns_editor.php +++ b/dns_editor.php @@ -159,7 +159,7 @@ if ($action == 'add_record' && ! empty($_POST)) { $target = substr($target, 0, - 1); } } - if (! validateDomain($target)) { + if ($target != '.' && ! validateDomain($target)) { $errors[] = $lng['error']['dns_srv_needdom']; } else { // check whether there is a CNAME-record for the same resource