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,8 +62,12 @@ 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');
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"; 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";
system("install -o bind -g bind $path /etc/bind/martnet.slave.zones.9"); system("install -o bind -g bind $path /etc/bind/martnet.slave.zones.9");