Changeset 457


Ignore:
Timestamp:
01/17/13 13:56:14 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Refiddle getRevPattern() again, so that it looks for all PTR types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r455 r457  
    39363936
    39373937  my ($revpatt) = $dbh->selectrow_array("SELECT r.host FROM records r JOIN revzones z ON r.rdns_id=z.rdns_id ".
    3938         "WHERE (r.type=65282 OR r.type=65283) AND z.group_id=? AND CAST (r.val AS inet) >>= ? ".
     3938        "WHERE (r.type in (12,65280,65281,65282,65283,65284)) AND z.group_id=? AND CAST (r.val AS inet) >>= ? ".
    39393939        "ORDER BY CAST (r.val AS inet) DESC LIMIT 1", undef, ($group, $cidr) );
    39403940  return $revpatt;
Note: See TracChangeset for help on using the changeset viewer.