Files
dnscrypt-osxclient/DNSCrypt-Preference-Pane/DNSCrypt/extra/usr/scripts/check-local-dns.sh
T
Alter Step 20b40f8cd9 Use google-public-dns-a.google.com for testing connectivity
OpenDNS authoritative servers seem to be slower.
2014-04-28 17:44:03 -07:00

11 lines
209 B
Bash
Executable File

#! /bin/sh
. ./common.inc
try_local_resolution() {
exec dig +tries=2 +time=3 +short google-public-dns-a.google.com @$INTERFACE_PROXY \
| egrep '^8[.]8[.]8[.]8' > /dev/null 2>&1
}
try_local_resolution