mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-03 03:50:08 +00:00
Merge pull request #7130 from gurevichmark/MN_named
Turn off DNSSEC on Management Node for bind 9.16.6
This commit is contained in:
commit
29af00199c
@ -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}){
|
||||
|
Loading…
x
Reference in New Issue
Block a user