diff --git a/include/tests_networking b/include/tests_networking index cba09d21..6cd43c58 100644 --- a/include/tests_networking +++ b/include/tests_networking @@ -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"