skip _dnssec tags

This commit is contained in:
2020-11-22 12:00:00 -05:00
parent bcbbb1fda6
commit a6105a732a

View File

@ -61,11 +61,8 @@ sub do_rewrite {
print "Differences found; rewriting slave file.\n"; print "Differences found; rewriting slave file.\n";
foreach my $i (sort {$a->{zone} cmp $b->{zone}} @vh) { foreach my $i (sort {$a->{zone} cmp $b->{zone}} @vh) {
if ($ddns->is_dnssec($i->{zone})) { next if ($i->{type} eq '_dnssec');
print $fh "zone \"$i->{zone}\" { type slave; file \"/var/cache/bind/db.$i->{zone}.signed\"; masters { $i->{master}; }; };\n"; print $fh "zone \"$i->{zone}\" { type slave; file \"/var/cache/bind/db.$i->{zone}\"; 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";