Changeset 625


Ignore:
Timestamp:
04/29/14 16:56:52 (10 years ago)
Author:
Kris Deugau
Message:

/trunk

Fine-tuning in _check_hostname_form()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r624 r625  
    15311531      return;
    15321532    }
     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    }
    15331540  } elsif ($revrec eq 'y') {
    15341541    # 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
    15371544      $errstr = "Hostnames may not contain anything other than (0-9 a-z . _)";
    15381545      return;
Note: See TracChangeset for help on using the changeset viewer.