- Timestamp:
- 05/09/12 17:18:23 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r329 r330 4042 4042 my ($email, $primary) = (split /:/, $host)[0,1]; 4043 4043 my ($refresh, $retry, $expire, $min_ttl) = (split /:/, $val)[0,1,2,3]; 4044 if ($revrec eq 'y') { 4045 $zone = NetAddr::IP->new($zone); 4046 $zone = _ZONE($zone, 'ZONE', 'r', '.').($zone->{isv6} ? '.ip6.arpa' : '.in-addr.arpa'); 4047 } 4044 4048 print $datafile "Z$zone:$primary:$email"."::$refresh:$retry:$expire:$min_ttl:$ttl:$stamp:$loc\n"; 4045 4049 … … 4050 4054 } elsif ($typemap{$type} eq 'NS') { 4051 4055 4052 print $datafile "\&$host"."::$val:$ttl:$stamp:$loc\n"; 4056 if ($revrec eq 'y') { 4057 $val = NetAddr::IP->new($val); 4058 print $datafile '&'._ZONE($val, 'ZONE', 'r', '.').($val->{isv6} ? '.ip6.arpa' : '.in-addr.arpa'). 4059 "::$host:$ttl:$stamp:$loc\n"; 4060 } else { 4061 print $datafile "\&$host"."::$val:$ttl:$stamp:$loc\n"; 4062 } 4053 4063 4054 4064 } elsif ($typemap{$type} eq 'AAAA') {
Note:
See TracChangeset
for help on using the changeset viewer.