Code

Ported changes from yesterday.
[gosa.git] / include / functions.inc
index 423fb28e3659626511b236c2f878d65323333669..adf7cf60a41d858768e89f6787ccf9ade05909a0 100644 (file)
@@ -905,6 +905,10 @@ function is_phone_nr($nr)
   return preg_match ("/^[\/0-9 ()+*-]+$/", $nr);
 }
 
+function is_dns_name($str)
+{
+  return(preg_match("/^[a-z0-9\.\-]*$/i",$str));
+}
 
 function is_url($url)
 {