Ignore:
Timestamp:
12/23/25 16:31:22 (19 hours ago)
Author:
Kris Deugau
Message:

/branches/cname-collision

Move A record CNAME collision check to end of validator
Add CNAME collision check call to NS, PTR, MX, TXT. Calls also cover A+PTR,

AAAA+PTR, and RP types as those call the A, AAAA, and TXT validators respectively.

See #72

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cname-collision/DNSDB.pm

    r941 r942  
    740740        unless $args{addr} && !$args{addr}->{isv6};
    741741
    742 return ('FAIL', $errstr) unless $self->_cname_collision(%args);
    743 
    744742    # coerce IP/value to normalized form for storage
    745743    ${$args{val}} = $args{addr}->addr;
    746744  }
     745
     746  return ('FAIL', $errstr) unless $self->_cname_collision(%args);
    747747
    748748  return ('OK','OK');
     
    798798    }   
    799799  }
     800
     801  return ('FAIL', $errstr) unless $self->_cname_collision(%args);
    800802
    801803  return ('OK','OK');
     
    10071009  }
    10081010
     1011  return ('FAIL', $errstr) unless $self->_cname_collision(%args);
     1012
    10091013  return ('WARN',$warnflag) if $warnflag;
    10101014
     
    10621066
    10631067  }
     1068
     1069  return ('FAIL', $errstr) unless $self->_cname_collision(%args);
    10641070
    10651071  return ('OK','OK');
     
    10921098      ${$args{val}} =~ /\.arpa$/;
    10931099  }
     1100
     1101  return ('FAIL', $errstr) unless $self->_cname_collision(%args);
    10941102
    10951103  # Could arguably put a WARN return here on very long (>512) records
Note: See TracChangeset for help on using the changeset viewer.