Published in: Other
URL: http://projects.tynsoe.org/phpBB2/viewtopic.php?p=745
And one to do a DNS lookup test on google: Code: IFS='' DNSHOST='www.google.com' DIG=$( dig $DNSHOST ) RC=$? if [ $RC -ne 0 ]; then echo "DNS lookup ($DNSHOST) failed" exit $RC fi RT=$( echo $DIG | grep "Query time" | cut -d' ' -f 4- ) echo "DNS lookup ($DNSHOST) $RT" exit 0
You need to login to post a comment.
