Only extract unique name servers [NAME-2704]

This commit is contained in:
mboelen 2014-10-13 10:42:07 +02:00
parent 382e0f8c4f
commit 7797c32d76
1 changed files with 1 additions and 1 deletions

View File

@ -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"