Skip to content

Commit 9ae4033

Browse files
committed
Changed max. length for PTR records from 64 to 255 chars.
1 parent cafdec2 commit 9ae4033

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

install/sql/ispconfig3.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ CREATE TABLE `dns_rr` (
202202
`sys_perm_other` varchar(5) NOT NULL,
203203
`server_id` int(11) NOT NULL default '1',
204204
`zone` int(11) unsigned NOT NULL,
205-
`name` varchar(64) NOT NULL,
205+
`name` varchar(255) NOT NULL,
206206
`type` enum('A','AAAA','ALIAS','CNAME','HINFO','MX','NAPTR','NS','PTR','RP','SRV','TXT') default NULL,
207207
`data` varchar(255) NOT NULL,
208208
`aux` int(11) unsigned NOT NULL default '0',

interface/web/dns/form/dns_ptr.tform.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
'datatype' => 'VARCHAR',
7979
'formtype' => 'TEXT',
8080
'validators' => array ( 0 => array ( 'type' => 'REGEX',
81-
'regex' => '/^[\w\.\-]{1,64}$/',
81+
'regex' => '/^[\w\.\-]{1,256}$/',
8282
'errmsg'=> 'name_error_regex'),
8383
),
8484
'default' => '',
@@ -100,7 +100,7 @@
100100
'validators' => array ( 0 => array ( 'type' => 'NOTEMPTY',
101101
'errmsg'=> 'data_error_empty'),
102102
1 => array ( 'type' => 'REGEX',
103-
'regex' => '/^[\w\.\-]{1,64}$/',
103+
'regex' => '/^[\w\.\-]{1,256}$/',
104104
'errmsg'=> 'data_error_regex'),
105105
),
106106
'default' => '',

0 commit comments

Comments
 (0)