Changeset 832 for trunk/dns-rpc.cgi
- Timestamp:
 - 03/30/22 14:48:23 (4 years ago)
 - File:
 - 
      
- 1 edited
 
- 
          
  trunk/dns-rpc.cgi (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/dns-rpc.cgi
r829 r832 1631 1631 # Delete ALL EVARYTHING!!one11!! in $args{cidr} 1632 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+)?$,,; 1633 # Deleting a small $args{cidr} from a large reverse zone will sometimes 1634 # silently fail by not finding the appropriate record(s). Prepend a 1635 # Postgres CIDR operator to assist in filtering 1636 my $filt = "<<= $args{cidr}"; 1637 1640 1638 my $reclist = $dnsdb->getRecList(rpc => 1, defrec => 'n', revrec => 'y', id => $zonelist->[0]->{rdns_id}, 1641 1639 filter => $filt, offset => 'all');  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  ![[ DNS Administrator ]](/fx/dnsadmin-logo.png)