- Timestamp:
- 06/07/13 18:41:45 (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r517 r518 4915 4915 4916 4916 # support tinydns' auto-TTL 4917 $ttl = '' if $ttl == '0';4917 $ttl = '' if $ttl == -1; 4918 4918 4919 4919 # Spaces are evil. … … 4999 4999 5000 5000 # support tinydns' auto-TTL 5001 $ttl = '' if $ttl == '0';5001 $ttl = '' if $ttl == -1; 5002 5002 5003 5003 _printrec_tiny(*ZONECACHE, 'y', \%recflags, $revzone, -
trunk/tiny-import.pl
r496 r518 263 263 $host =~ s/^=//; 264 264 $host =~ s/\.$//; 265 $ttl = 0if !$ttl;265 $ttl = -1 if !$ttl; 266 266 $stamp = '' if !$stamp; 267 267 $loc = '' if !$loc; … … 290 290 $host =~ s/\.$//; 291 291 $host =~ s/^\\052/*/; 292 $ttl = 0if !$ttl;292 $ttl = -1 if !$ttl; 293 293 $stamp = '' if !$stamp; 294 294 $loc = '' if !$loc; … … 324 324 $ns =~ s/\.$//; 325 325 $ns = "$ns.ns.$zone" if $ns !~ /\./; 326 $ttl = 0if !$ttl;326 $ttl = -1 if !$ttl; 327 327 $stamp = '' if !$stamp; 328 328 $loc = '' if !$loc; … … 358 358 $rip =~ s/^\^//; 359 359 $rip =~ s/\.$//; 360 $ttl = 0if !$ttl;360 $ttl = 1 if !$ttl; 361 361 $stamp = '' if !$stamp; 362 362 $loc = '' if !$loc; … … 389 389 $host =~ s/\.$//; 390 390 $host =~ s/^\\052/*/; 391 $ttl = 0if !$ttl;391 $ttl = -1 if !$ttl; 392 392 $stamp = '' if !$stamp; 393 393 $loc = '' if !$loc; … … 410 410 $master =~ s/\.$//; 411 411 $contact =~ s/\.$//; 412 $ttl = 0if !$ttl;412 $ttl = -1 if !$ttl; 413 413 $stamp = '' if !$stamp; 414 414 $loc = '' if !$loc; … … 436 436 $host =~ s/\.$//; 437 437 $host = "$host.mx.$zone" if $host !~ /\./; 438 $ttl = 0if !$ttl;438 $ttl = -1 if !$ttl; 439 439 $stamp = '' if !$stamp; 440 440 $loc = '' if !$loc; … … 461 461 $fqdn =~ s/^\\052/*/; 462 462 _deoctal(\$rdata); 463 $ttl = 0if !$ttl;463 $ttl = -1 if !$ttl; 464 464 $stamp = '' if !$stamp; 465 465 $loc = '' if !$loc; … … 488 488 $ns =~ s/\.$//; 489 489 $ns = "$ns.ns.$fqdn" if $ns !~ /\./; 490 $ttl = 0if !$ttl;490 $ttl = -1 if !$ttl; 491 491 $stamp = '' if !$stamp; 492 492 $loc = '' if !$loc; … … 556 556 $fqdn =~ s/\.$//; 557 557 $fqdn =~ s/^\\052/*/; 558 $ttl = 0if !$ttl;558 $ttl = -1 if !$ttl; 559 559 $stamp = '' if !$stamp; 560 560 $loc = '' if !$loc;
Note:
See TracChangeset
for help on using the changeset viewer.