- Timestamp:
- 09/20/22 16:16:56 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB/ExportBIND.pm
r861 r862 307 307 elsif ($typemap{$type} eq 'SRV') { 308 308 # ($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 $!; 310 310 } # SRV 311 311 … … 328 328 # sub-octet v4 zone 329 329 ($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'. 331 331 ":$host:$ttl:$stamp:$loc\n" or die $!; 332 332 } else { … … 334 334 $val = NetAddr::IP->new($val); 335 335 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'). 337 337 ":$host:$ttl:$stamp:$loc\n" or die $!; 338 338 }
Note:
See TracChangeset
for help on using the changeset viewer.