- Timestamp:
- 04/29/14 16:56:52 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r624 r625 1531 1531 return; 1532 1532 } 1533 } elsif ($rectype == $reverse_typemap{CNAME}) { 1534 # Allow / in reverse CNAME hostnames for sub-/24 delegation 1535 if (lc($hname) !~ m|^[0-9a-z_./-]+$|) { 1536 # error message is deliberately restrictive; special cases are SPECIAL and not for general use 1537 $errstr = "Hostnames may not contain anything other than (0-9 a-z . _)"; 1538 return; 1539 } 1533 1540 } elsif ($revrec eq 'y') { 1534 1541 # Reverse zones don't support @ in hostnames 1535 # Also skip failure on revzone TXT records; the hostname contains the TXT content in that case.1536 if ($rectype != $reverse_typemap{TXT} && lc($hname) !~ /^(?:\*\.)?[0-9a-z_.-]+$/) {1542 if (lc($hname) !~ /^(?:\*\.)?[0-9a-z_.-]+$/) { 1543 # error message is deliberately restrictive; special cases are SPECIAL and not for general use 1537 1544 $errstr = "Hostnames may not contain anything other than (0-9 a-z . _)"; 1538 1545 return;
Note:
See TracChangeset
for help on using the changeset viewer.