mirror of https://github.com/CISOfy/lynis.git
Only extract unique name servers [NAME-2704]
This commit is contained in:
parent
382e0f8c4f
commit
7797c32d76
|
@ -37,7 +37,7 @@
|
|||
logtext "Test: Checking /etc/resolv.conf file"
|
||||
if [ -f /etc/resolv.conf ]; then
|
||||
logtext "Result: Found /etc/resolv.conf file"
|
||||
FIND=`grep '^nameserver' /etc/resolv.conf | tr -d '\t' | sed 's/nameserver*//g'`
|
||||
FIND=`grep '^nameserver' /etc/resolv.conf | tr -d '\t' | sed 's/nameserver*//g' | uniq`
|
||||
if [ ! "${FIND}" = "" ]; then
|
||||
Display --indent 4 --text "- Testing nameservers"
|
||||
logtext "Test: Querying nameservers"
|
||||
|
|
Loading…
Reference in New Issue