mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-29 00:34:14 +02:00
[NETW-2704] added support for local resolver used on Ubuntu 18.04
This commit is contained in:
parent
8c97017ba6
commit
170e427595
@ -131,7 +131,7 @@
|
|||||||
LogText "Found nameserver: ${I}"
|
LogText "Found nameserver: ${I}"
|
||||||
Report "nameserver[]=${I}"
|
Report "nameserver[]=${I}"
|
||||||
# Check if a local resolver is available (like DNSMasq)
|
# Check if a local resolver is available (like DNSMasq)
|
||||||
if [ "${I}" = "::1" -o "${I}" = "127.0.0.1" -o "${I}" = "127.0.1.1" -o "${I}" = "0.0.0.0" ]; then
|
if [ "${I}" = "::1" -o "${I}" = "127.0.0.1" -o "${I}" = "127.0.0.53" -o "${I}" = "127.0.1.1" -o "${I}" = "0.0.0.0" ]; then
|
||||||
LOCAL_DNSRESOLVER_FOUND=1
|
LOCAL_DNSRESOLVER_FOUND=1
|
||||||
fi
|
fi
|
||||||
if [ ! -z "${DIGBINARY}" ]; then
|
if [ ! -z "${DIGBINARY}" ]; then
|
||||||
@ -163,7 +163,7 @@
|
|||||||
#
|
#
|
||||||
# Test : NETW-2705
|
# Test : NETW-2705
|
||||||
# Description : Basic nameserver configuration tests (connectivity)
|
# Description : Basic nameserver configuration tests (connectivity)
|
||||||
if [ ${LOCAL_DNSRESOLVER_FOUND} -eq 0 ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
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"
|
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 [ ${SKIPTEST} -eq 0 ]; then
|
||||||
SKIP=0
|
SKIP=0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user