Changeset 436
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r429 r436 4158 4158 my $zone = shift; 4159 4159 my $group = shift; 4160 my $status = shift || 1; 4160 my $status = shift; 4161 $status = (defined($status) ? $status : 0); # force sane semantics, and allow passing "null" (inactive) status 4161 4162 my $rwsoa = shift || 0; 4162 4163 my $rwns = shift || 0; 4164 my $newttl = shift; 4163 4165 my $merge = shift || 0; # do we attempt to merge A/AAAA and PTR records whenever possible? 4164 4166 # do we overload this with the fixme below? … … 4316 4318 my $type = $rr->type; 4317 4319 my $host = $rr->name; 4318 my $ttl = $rr->ttl;4320 my $ttl = ($newttl ? $newttl : $rr->ttl); # allow force-override TTLs 4319 4321 4320 4322 $soaflag = 1 if $type eq 'SOA'; -
trunk/dns.cgi
r431 r436 1542 1542 $page->param(rwsoa => $webvar{rwsoa}) if $webvar{rwsoa}; 1543 1543 $page->param(rwns => $webvar{rwns}) if $webvar{rwns}; 1544 $page->param(forcettl => $webvar{forcettl}) if $webvar{forcettl}; 1545 $page->param(newttl => $webvar{newttl}) if $webvar{newttl}; 1544 1546 # This next one is arguably better on by default, but Breaking Things Is Bad, Mmmkay? 1545 1547 $page->param(mergematching => $webvar{mergematching}) if $webvar{mergematching}; … … 1569 1571 my %row; 1570 1572 my ($code,$msg) = importAXFR($dbh, $webvar{ifrom}, $domain, $webvar{group}, 1571 $webvar{zonestatus}, $webvar{rwsoa}, $webvar{rwns}, $webvar{mergematching}); 1573 $webvar{domactive}, $webvar{rwsoa}, $webvar{rwns}, ($webvar{forcettl} ? $webvar{newttl} : 0), 1574 $webvar{mergematching}); 1572 1575 $row{domok} = $msg if $code eq 'OK'; 1573 1576 if ($code eq 'WARN') { -
trunk/templates/axfr.tmpl
r308 r436 33 33 <td>Rewrite NS to group default?</td> 34 34 <td><input type="checkbox" name="rwns"<TMPL_IF rwns> checked="checked"</TMPL_IF> /></td> 35 </tr> 36 <tr class="datalinelight"> 37 <td>Force all TTLs to new value?</td> 38 <td><input type="checkbox" name="forcettl"<TMPL_IF forcettl> checked="checked"</TMPL_IF> /><input name="newttl" size="7"<TMPL_IF newttl> value="<TMPL_VAR NAME=newttl>"</TMPL_IF> /></td> 35 39 </tr> 36 40 <tr class="datalinelight">
Note:
See TracChangeset
for help on using the changeset viewer.