Changeset 436 for trunk/dns.cgi


Ignore:
Timestamp:
10/30/12 12:18:50 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Fix bug in AXFR import (couldn't import as inactive)
Extend AXFR import to allow overriding TTLs. Note this is all-or-nothing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns.cgi

    r431 r436  
    15421542  $page->param(rwsoa => $webvar{rwsoa}) if $webvar{rwsoa};
    15431543  $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};
    15441546  # This next one is arguably better on by default, but Breaking Things Is Bad, Mmmkay?
    15451547  $page->param(mergematching => $webvar{mergematching}) if $webvar{mergematching};
     
    15691571      my %row;
    15701572      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});
    15721575      $row{domok} = $msg if $code eq 'OK';
    15731576      if ($code eq 'WARN') {
Note: See TracChangeset for help on using the changeset viewer.