2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 18:50:28 +00:00

Turn off DNSSEC on Service Node for bind 9.16.6

This commit is contained in:
Mark Gurevich
2022-03-09 16:20:49 -05:00
parent a2c03bcbcd
commit 3a0e2fe832

View File

@@ -62,6 +62,11 @@ for i in $(grep "^nameserver" /etc/resolv.conf | awk '{print $2}')
do
echo " $i;"
done >>$FILE
echo " };
};" >>$FILE
echo " };" >>$FILE
BIND_VERSION=$(/usr/sbin/named -v | cut -d" " -f2)
if [[ $BIND_VERSION > "9.16.5" ]]; then
echo " dnssec-enable no;
dnssec-validation no;" >>$FILE
fi
echo "};" >>$FILE