Changeset 661 for trunk


Ignore:
Timestamp:
09/30/14 17:28:03 (10 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix subtle PTR validation bug; when adding A(AAA)+PTR records, the
"adding another will probably not do what you want" warning would be
triggered when an A or AAAA record was present, not just PTR or A(AAA)+PTR.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r660 r661  
    781781    } else {
    782782      # New record.  Always warn if a PTR exists
     783      # Don't warn when a matching A record exists tho
    783784      my ($ptrcount) = $dbh->selectrow_array("SELECT count(*) FROM "._rectable($args{defrec},$args{revrec}).
    784         " WHERE $hostcol = ?", undef, ($checkme));
     785        " WHERE $hostcol = ? AND (type=12 OR type=65280 OR type=65281)", undef, ($checkme));
    785786      $warnflag .= "PTR record for $checkme already exists;  adding another will probably not do what you want"
    786787        if $ptrcount;
Note: See TracChangeset for help on using the changeset viewer.