diff --git a/interface/web/dns/form/dns_srv.tform.php b/interface/web/dns/form/dns_srv.tform.php
index 2741a5f7f1218a7275242d9181e2f9ae1fe6f330..2f35fd53dda6ff14472edcb43f1b8c2831f7d436 100644
--- a/interface/web/dns/form/dns_srv.tform.php
+++ b/interface/web/dns/form/dns_srv.tform.php
@@ -86,7 +86,7 @@ $form["tabs"]['dns'] = array (
 					'type' => 'TOLOWER')
 			),
 			'validators' => array (  0 => array ( 'type' => 'REGEX',
-					'regex' => '/^[a-zA-Z0-9\.\-]{0,255}$/',
+					'regex' => '/^[a-zA-Z0-9\.\-_]{0,255}$/',
 					'errmsg'=> 'name_error_regex'),
 			),
 			'default' => '',