Changeset 777
- Timestamp:
- 07/31/19 17:02:44 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tiny-import.pl
r770 r777 569 569 $loc = '' if !$loc; 570 570 $loc = '' if $loc =~ /^:+$/; 571 # Default to UNIX epoch for zones with no existing serial value 572 $serial = scalar(time) if !$serial; 571 573 572 574 my $stampactive = 'n'; … … 588 590 if ($zone =~ /\.arpa$/) { 589 591 ($code,$msg) = DNSDB::_zone2cidr($zone); 590 $dbh->do("INSERT INTO revzones (revnet,group_id,status,default_location ) VALUES (?,?,1,?)",591 undef, ($msg, $importcfg{group}, $loc ));592 $dbh->do("INSERT INTO revzones (revnet,group_id,status,default_location,zserial) VALUES (?,?,1,?,?)", 593 undef, ($msg, $importcfg{group}, $loc, $serial)); 592 594 my ($rdns) = $dbh->selectrow_array("SELECT currval('revzones_rdns_id_seq')"); 593 595 my $newttl; … … 597 599 $loc, $stamp, $expires, $stampactive); 598 600 } else { 599 $dbh->do("INSERT INTO domains (domain,group_id,status,default_location ) VALUES (?,?,1,?)",600 undef, ($zone, $importcfg{group}, $loc ));601 $dbh->do("INSERT INTO domains (domain,group_id,status,default_location,zserial) VALUES (?,?,1,?,?)", 602 undef, ($zone, $importcfg{group}, $loc, $serial)); 601 603 my ($domid) = $dbh->selectrow_array("SELECT currval('domains_domain_id_seq')"); 602 604 my $newttl;
Note:
See TracChangeset
for help on using the changeset viewer.