re-add dnssec signed file name

This commit is contained in:
2020-11-22 12:03:19 -05:00
parent a6105a732a
commit ec31cc8d65

View File

@ -62,7 +62,11 @@ sub do_rewrite {
foreach my $i (sort {$a->{zone} cmp $b->{zone}} @vh) { foreach my $i (sort {$a->{zone} cmp $b->{zone}} @vh) {
next if ($i->{type} eq '_dnssec'); next if ($i->{type} eq '_dnssec');
print $fh "zone \"$i->{zone}\" { type slave; file \"/var/cache/bind/db.$i->{zone}\"; masters { $i->{master}; }; };\n"; if ($ddns->is_dnssec($i->{zone})) {
print $fh "zone \"$i->{zone}\" { type slave; file \"/var/cache/bind/db.$i->{zone}.signed\"; masters { $i->{master}; }; };\n";
} else {
print $fh "zone \"$i->{zone}\" { type slave; file \"/var/cache/bind/db.$i->{zone}\"; masters { $i->{master}; }; };\n";
}
} }
close $fh; close $fh;
print "Installing new slave host list\n"; print "Installing new slave host list\n";