Changeset 526


Ignore:
Timestamp:
06/13/13 15:32:58 (11 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix AAAA+PTR record export; somewhere long the way this broke (or never
worked and wasn't noticed as broken)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB.pm

    r524 r526  
    53125312      } elsif ($type == 65281) { # AAAA+PTR
    53135313
    5314 #$$recflags{$val}++;
     5314        $$recflags{$val}++;
    53155315        # treat these as two separate records.  since tinydns doesn't have
    53165316        # a native combined type, we have to create them separately anyway.
    5317         if ($revrec eq 'n') {
    5318           $type = 28;
    5319         } else {
    5320           $type = 12;
    5321         }
    5322         _printrec_tiny($datafile,$revrec,$recflags,$zone,$host,$type,$val,$dist,$weight,$port,$ttl,$loc,$stamp);
     5317        # print both;  a dangling record is harmless, and impossible via web
     5318        # UI anyway
     5319        _printrec_tiny($datafile,$revrec,$recflags,$zone,$host,28,$val,$dist,$weight,$port,$ttl,$loc,$stamp);
     5320        _printrec_tiny($datafile,$revrec,$recflags,$zone,$host,12,$val,$dist,$weight,$port,$ttl,$loc,$stamp);
    53235321##fixme: add a config flag to indicate use of the patch from http://www.fefe.de/dns/
    53245322# type 6 is for AAAA+PTR, type 3 is for AAAA
Note: See TracChangeset for help on using the changeset viewer.