adding dnssec support
This commit is contained in:
@ -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";
|
||||
|
||||
Reference in New Issue
Block a user