- Timestamp:
- 03/21/14 16:05:04 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tiny-import.pl
r579 r598 704 704 undef, ($msg, $loc)); 705 705 ($rdns) = $dbh->selectrow_array("SELECT currval('revzones_rdns_id_seq')"); 706 ($ttl, $stampactive, $expires, $stamp) = calcstamp($stamp, 2560, 0, 'y'); 706 my $soattl; 707 ($soattl, $stampactive, $expires, $stamp) = calcstamp($stamp, 2560, 0, 'y'); 707 708 # this would probably make a lot more sense to do hostmaster.$config{admindomain} 708 709 # otherwise, it's as per the tinydns defaults that work tolerably well on a small scale 709 710 # serial -> modtime of data file, ref -> 16384, ret -> 2048, exp -> 1048576, min -> 2560 710 $recsth->execute(0, $rdns, "hostmaster.$fqdn:$ns", 6, "16384:2048:1048576:2560", 0, 0, 0, "2560", 711 # the SOA also gets the default 2560 TTL, no matter what was set on the . entry. 712 $recsth->execute(0, $rdns, "hostmaster.$fqdn:$ns", 6, "16384:2048:1048576:2560", 0, 0, 0, $soattl, 711 713 $loc, $stamp, $expires, $stampactive); 712 714 } 713 ($ttl, $stampactive, $expires, $stamp) = calcstamp($stamp, 2560, $rdns, 'y') if !$stamp; 715 # NS records get the specified TTL from the original . entry 716 ($ttl, $stampactive, $expires, $stamp) = calcstamp($stamp, $ttl, $rdns, 'y') if !$stamp; 714 717 $recsth->execute(0, $rdns, $ns, 2, "$msg", 0, 0, 0, $ttl, $loc, $stamp, $expires, $stampactive); 715 718 ##fixme: (?) implement full conversion of tinydns . records?
Note:
See TracChangeset
for help on using the changeset viewer.