Changeset 359
- Timestamp:
- 07/06/12 13:21:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tiny-import.pl
r358 r359 246 246 $cnt{A}++; 247 247 248 my ($host,$ip,$ttl,$stamp,$loc) = split /:/, $rec, 5; 249 $host =~ s/^\+//; 250 $host =~ s/\.$//; 251 $ttl = 0 if !$ttl; 252 $stamp = '' if !$stamp; 253 $loc = '' if !$loc; 254 $loc = '' if $loc =~ /^:+$/; 255 256 my $domid = DNSDB::_hostparent($dbh, $host); 257 if ($domid) { 258 $recsth->execute($domid, 0, $host, 1, $ip, 0, 0, 0, $ttl); 259 } else { 260 push @deferred, $rec unless $nodefer; 261 } 262 248 263 } elsif ($rec =~ /^Z/) { 249 264 $cnt{SOA}++; … … 273 288 274 289 my ($zone,$ip,$host,$dist,$ttl,$stamp,$loc) = split /:/, $rec, 7; 275 $zone =~ s/^\ .//;290 $zone =~ s/^\@//; 276 291 $zone =~ s/\.$//; 277 292 $host =~ s/\.$//;
Note:
See TracChangeset
for help on using the changeset viewer.