Changeset 829 for trunk/dns-rpc.cgi
- Timestamp:
- 12/07/21 18:10:58 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dns-rpc.cgi
r797 r829 1630 1630 if ($args{delsubs}) { 1631 1631 # Delete ALL EVARYTHING!!one11!! in $args{cidr} 1632 my $reclist = $dnsdb->getRecList(rpc => 1, defrec => 'n', revrec => 'y', id => $zonelist->[0]->{rdns_id}); 1632 1633 # Use offset => 'all' to make sure we actually find all the records we need to remove, 1634 # otherwise the record(s) that need to be deleted may be more than 75 records down the 1635 # list and won't get caught. We also do a crude filter based on the /24 of $args{cidr} 1636 # to reduce the remote's cost for the operation - if the revzone is large, it'll iterate 1637 # over a Very Large Number(TM) of records, just to delete a small handful. Bad juju. 1638 my $filt = $args{cidr}; 1639 $filt =~ s,\.\d+(?:/\d+)?$,,; 1640 my $reclist = $dnsdb->getRecList(rpc => 1, defrec => 'n', revrec => 'y', id => $zonelist->[0]->{rdns_id}, 1641 filter => $filt, offset => 'all'); 1642 1633 1643 foreach my $rec (@$reclist) { 1634 1644 my $reccidr = new NetAddr::IP $rec->{val};
Note:
See TracChangeset
for help on using the changeset viewer.