Commit 9ae40336 authored by tbrehm's avatar tbrehm
Browse files

Changed max. length for PTR records from 64 to 255 chars.

parent cafdec2a
......@@ -202,7 +202,7 @@ CREATE TABLE `dns_rr` (
`sys_perm_other` varchar(5) NOT NULL,
`server_id` int(11) NOT NULL default '1',
`zone` int(11) unsigned NOT NULL,
`name` varchar(64) NOT NULL,
`name` varchar(255) NOT NULL,
`type` enum('A','AAAA','ALIAS','CNAME','HINFO','MX','NAPTR','NS','PTR','RP','SRV','TXT') default NULL,
`data` varchar(255) NOT NULL,
`aux` int(11) unsigned NOT NULL default '0',
......
......@@ -78,7 +78,7 @@ $form["tabs"]['dns'] = array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'REGEX',
'regex' => '/^[\w\.\-]{1,64}$/',
'regex' => '/^[\w\.\-]{1,256}$/',
'errmsg'=> 'name_error_regex'),
),
'default' => '',
......@@ -100,7 +100,7 @@ $form["tabs"]['dns'] = array (
'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
'errmsg'=> 'data_error_empty'),
1 => array ( 'type' => 'REGEX',
'regex' => '/^[\w\.\-]{1,64}$/',
'regex' => '/^[\w\.\-]{1,256}$/',
'errmsg'=> 'data_error_regex'),
),
'default' => '',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment