Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2017-09-16 15:25:01 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-09-16 15:25:01 +0300
commit3670e0c5c9f3e1d96ccccce5ba41f1918f637104 (patch)
tree37d9608f4ba8c3f388daa88f9a573ef7d4a21c16 /include/tests_networking
parent83ce145f1bf93f1d72c5337dda165336660f1df6 (diff)
Minor changes to using local resolvers
Diffstat (limited to 'include/tests_networking')
-rw-r--r--include/tests_networking7
1 files changed, 2 insertions, 5 deletions
diff --git a/include/tests_networking b/include/tests_networking
index df53f2ac..9d275aee 100644
--- a/include/tests_networking
+++ b/include/tests_networking
@@ -166,12 +166,9 @@
if [ ${LOCAL_DNSRESOLVER_FOUND} -eq 0 ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
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
+ SKIP=0
if [ ! -z "${DIGBINARY}" ]; 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
+ if [ ${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"