Changeset 621 for trunk


Ignore:
Timestamp:
04/29/14 14:37:56 (11 years ago)
Author:
Kris Deugau
Message:

/trunk

Finally extract and commit patch to log reverse zone records "correctly",
since they're stored "backwards".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r620 r621  
    40464046        if $defrec eq 'n';
    40474047  $logdata{entry} = "Added ".($defrec eq 'y' ? 'default record' : 'record');
    4048   # NS records for revzones get special treatment
    4049   if ($revrec eq 'y' && $$rectype == 2) {
     4048  # Log reverse records to match the formal .arpa tree
     4049  if ($revrec eq 'y') {
    40504050    $logdata{entry} .= " '$$val $typemap{$$rectype} $$host";
    40514051  } else {
     
    42304230        if $defrec eq 'n';
    42314231  $logdata{entry} = "Updated ".($defrec eq 'y' ? 'default record' : 'record')." from\n";
    4232   # NS records for revzones get special treatment
    4233   if ($revrec eq 'y' && $$rectype == 2) {
     4232  # Log reverse records "naturally", since they're stored, um, unnaturally.
     4233  if ($revrec eq 'y') {
    42344234    $logdata{entry} .= " '$oldrec->{val} $typemap{$oldrec->{type}} $oldrec->{host}";
    42354235  } else {
     
    42444244        if $oldrec->{stampactive};
    42454245  $logdata{entry} .= "\nto\n";
    4246   # More NS special
    4247   if ($revrec eq 'y' && $$rectype == 2) {
     4246  # Log reverse records "naturally", since they're stored, um, unnaturally.
     4247  if ($revrec eq 'y') {
    42484248    $logdata{entry} .= "'$$val $typemap{$$rectype} $$host";
    42494249  } else {
Note: See TracChangeset for help on using the changeset viewer.