- Timestamp:
- 08/11/25 17:28:21 (13 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r902 r907 1963 1963 my $tmpl = shift; 1964 1964 my $ip = shift; 1965 my $subnet = shift; # %ngb, %c, and %x1965 my $subnet = shift; # for %ngb, %c, and %x 1966 1966 my $ipindex = shift; # for %c 1967 1967 … … 4871 4871 my $retid; 4872 4872 eval { 4873 ($retid) = $dbh->selectrow ("INSERT INTO "._rectable($defrec, $revrec)." ($fields) VALUES ($vallen) RETURNING record_id",4873 ($retid) = $dbh->selectrow_array("INSERT INTO "._rectable($defrec, $revrec)." ($fields) VALUES ($vallen) RETURNING record_id", 4874 4874 undef, 4875 4875 @vallist … … 6564 6564 "FROM records WHERE domain_id=? AND type=6"); 6565 6565 $recsth = $dbh->prepare("SELECT host,type,val,distance,weight,port,ttl,record_id,location,extract(epoch from stamp),expires,stampactive ". 6566 "FROM records WHERE domain_id=? AND NOT type=6"); # Just exclude all types relating to rDNS 6566 "FROM records WHERE domain_id=? AND NOT type=6"). # Just exclude all types relating to rDNS 6567 "ORDER BY masklen(inetlazy(val)) DESC, inetlazy(val)"); 6567 6568 # "FROM records WHERE domain_id=? AND type < 65280"); # Just exclude all types relating to rDNS 6568 6569 my $domsth = $dbh->prepare("SELECT domain_id,domain,status,changed FROM domains WHERE status=1 ORDER BY domain_id"); … … 6925 6926 } else { 6926 6927 # call sub to convert 1-4 hex digits to 2 string-rep octal bytes 6927 $altconv[$altgrp++] = octalize($_) 6928 $altconv[$altgrp++] = octalize($_); 6928 6929 } 6929 6930 }
Note:
See TracChangeset
for help on using the changeset viewer.