2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-28 15:21:11 +00:00

Turn off DNSSEC on Management Node for bind 9.16.6

This commit is contained in:
Mark Gurevich
2022-03-18 14:11:50 -04:00
parent 800828ba91
commit dc0d43750d

View File

@@ -1282,6 +1282,13 @@ sub update_namedconf {
push @newnamed, "\t\t$_;\n";
}
push @newnamed, "\t};\n";
my $bind_version_cmd="/usr/sbin/named -v | cut -d' ' -f2";
my @bind_version =xCAT::Utils->runcmd($bind_version_cmd, 0);
# Turn off DNSSEC if running with bind vers 9.16.6 or higher
if ((scalar @bind_version > 0) && ($bind_version[0] ge "9.16.6")) {
push @newnamed, "\tdnssec-enable no;\n";
push @newnamed, "\tdnssec-validation no;\n";
}
}
if ($ctx->{forwardmode}){