diff --git a/xCAT-server/sbin/makenamed.conf b/xCAT-server/sbin/makenamed.conf index 9b984607c..eaf197932 100755 --- a/xCAT-server/sbin/makenamed.conf +++ b/xCAT-server/sbin/makenamed.conf @@ -66,7 +66,7 @@ echo " };" >>$FILE # Natural version compare against version of bind. # If version 9.16.6 or higher, turn off DNSSEC -BIND_VERSION=$(/usr/sbin/named -v | cut -d" " -f2) +BIND_VERSION=$(/usr/sbin/named -v | cut -d" " -f2 | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+' | head -n1) CONTROL_BIND_VERSION="9.16.6" # "sort --version-sort" takes lines of version strings and sorts them.