as someone said, icmp is an unreliable test because ping requests get dropped by busy servers or network devices. consider using something like this as a test of a resolver: /usr/bin/time -f '%e' dig +short +noanswer +time=5 cnn.com @8.8.8.8