skip _dnssec tags
This commit is contained in:
@ -61,12 +61,9 @@ sub do_rewrite {
|
||||
print "Differences found; rewriting slave file.\n";
|
||||
|
||||
foreach my $i (sort {$a->{zone} cmp $b->{zone}} @vh) {
|
||||
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 {
|
||||
next if ($i->{type} eq '_dnssec');
|
||||
print $fh "zone \"$i->{zone}\" { type slave; file \"/var/cache/bind/db.$i->{zone}\"; masters { $i->{master}; }; };\n";
|
||||
}
|
||||
}
|
||||
close $fh;
|
||||
print "Installing new slave host list\n";
|
||||
system("install -o bind -g bind $path /etc/bind/martnet.slave.zones.9");
|
||||
|
||||
Reference in New Issue
Block a user