This commit is contained in:
Michael Boelen 2017-09-16 14:10:20 +02:00
commit 83ce145f1b
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
1 changed files with 5 additions and 1 deletions

View File

@ -167,7 +167,11 @@
Register --test-no NETW-2705 --preqs-met ${PREQS_MET} --weight L --network YES --category security --description "Check availability two nameservers"
if [ ${SKIPTEST} -eq 0 ]; then
if [ ! -z "${DIGBINARY}" ]; then
if [ ${NUMBERACTIVENS} -lt 2 ]; then
# if we have local resolvers we do not need 2
if [ `grep -c "127.0.[0-1].1" /etc/resolv.conf` -ge 1 ]; then
Display --indent 4 --text "- Resolvers matched 127.0.[0-1].1 so not checking the number of name servers" --result "${STATUS_OK}" --color GREEN
LogText "Result: one or more responsive nameservers matched 127.0.[0-1].1"
elif [ ${NUMBERACTIVENS} -lt 2 ]; then
Display --indent 4 --text "- Minimal of 2 responsive nameservers" --result "${STATUS_WARNING}" --color RED
LogText "Result: less than 2 responsive nameservers found"
ReportWarning ${TEST_NO} "Couldn't find 2 responsive nameservers"