adding dnssec support

This commit is contained in:
2020-11-21 16:11:41 -05:00
parent 8d05bd540c
commit ab0a52c30e
4 changed files with 36 additions and 7 deletions

View File

@ -37,7 +37,11 @@ if ($changecount) {
# If we made any changes, then generate the full vhost list
my ($fh, $path) = tempfile();
foreach my $i (sort {$a->{zone} cmp $b->{zone}} @vh) {
print $fh "zone \"$i->{zone}\" { type master; file \"/var/lib/bind/vhost/db.$i->{zone}\"; };\n";
if ($ddns->is_dnssec($i->{zone})) {
print $fh "zone \"$i->{zone}\" { type master; file \"/var/lib/bind/vhost/db.$i->{zone}.signed\"; };\n";
} else {
print $fh "zone \"$i->{zone}\" { type master; file \"/var/lib/bind/vhost/db.$i->{zone}\"; };\n";
}
}
close $fh;
print "Installing new vhost list\n";