Changeset 862 for trunk


Ignore:
Timestamp:
09/20/22 16:16:56 (2 years ago)
Author:
Kris Deugau
Message:

/trunk

BIND export, unwinding dev saves, 14 of many many

  • Use $distance when printing an SRV record
  • Call _ZONE() as DNSDB::_ZONE() since we're not in that module
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DNSDB/ExportBIND.pm

    r861 r862  
    307307  elsif ($typemap{$type} eq 'SRV') {
    308308#    ($host,$val) = __revswap($host,$val) if $revrec eq 'y';
    309     print {$zonefiles->{$loc}} "$host  $ttl    IN      SRV     $dist   $weight $port   $val\n" or die $!;
     309    print {$zonefiles->{$loc}} "$host  $ttl    IN      SRV     $distance   $weight $port   $val\n" or die $!;
    310310  } # SRV
    311311
     
    328328          # sub-octet v4 zone
    329329          ($val) = ($val =~ /\.(\d+)$/);
    330           print {$zonefiles->{$loc}} "^$val."._ZONE($zone, 'ZONE', 'r', '.').'.in-addr.arpa'.
     330          print {$zonefiles->{$loc}} "^$val.".DNSDB::_ZONE($zone, 'ZONE', 'r', '.').'.in-addr.arpa'.
    331331            ":$host:$ttl:$stamp:$loc\n" or die $!;
    332332        } else {
     
    334334          $val = NetAddr::IP->new($val);
    335335          print {$zonefiles->{$loc}} "^".
    336             _ZONE($val, 'ZONE', 'r', '.').($val->{isv6} ? '.ip6.arpa' : '.in-addr.arpa').
     336            DNSDB::_ZONE($val, 'ZONE', 'r', '.').($val->{isv6} ? '.ip6.arpa' : '.in-addr.arpa').
    337337            ":$host:$ttl:$stamp:$loc\n" or die $!;
    338338        }
Note: See TracChangeset for help on using the changeset viewer.