Changeset 686 for trunk


Ignore:
Timestamp:
07/27/15 17:39:44 (9 years ago)
Author:
Kris Deugau
Message:

/trunk

  • Tweak call to DNSDB::_template4_expand() in templatesToRecords() for _template4_expand()'s changes
  • Note a couple of distant edge case buglets for future consideration
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns-rpc.cgi

    r684 r686  
    538538  my $cidr = new NetAddr::IP $args{cidr};
    539539
     540##fixme:  Minor edge case; if we receive calls one after the other to update
     541# to the same thing, we bulk out the log with useless notices.  Leaving this
     542# for future development since this should be rare in practice.
     543
    540544  my $zonelist = $dnsdb->getZonesByCIDR(%args);
    541545  if (scalar(@$zonelist) == 0) {
     
    803807          next if $iplist{$ip};
    804808          my $newhost = $host;
    805           DNSDB::_template4_expand(\$newhost, $ip->addr);
     809          $dnsdb->_template4_expand(\$newhost, $ip->addr);
    806810          $insth->execute($domid, $zid, $newhost, $type, $ip->addr, $ttl, $loc);
    807811          $iplist{$ip}++;
     
    871875            my ($code,$msg) = $dnsdb->delRec('n', 'y', $rec->{record_id});
    872876          } else {
     877##fixme: AAAA+PTR?
    873878            my $ret = $dnsdb->downconvert($rec->{record_id}, $DNSDB::reverse_typemap{A});
    874879          }
Note: See TracChangeset for help on using the changeset viewer.