From 20b40f8cd97e8b7da073f4108bfebb16e57342f4 Mon Sep 17 00:00:00 2001 From: Alter Step Date: Mon, 28 Apr 2014 17:44:03 -0700 Subject: [PATCH] Use google-public-dns-a.google.com for testing connectivity OpenDNS authoritative servers seem to be slower. --- .../DNSCrypt/extra/usr/scripts/check-hijacking.sh | 4 ++-- .../DNSCrypt/extra/usr/scripts/check-local-dns.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DNSCrypt-Preference-Pane/DNSCrypt/extra/usr/scripts/check-hijacking.sh b/DNSCrypt-Preference-Pane/DNSCrypt/extra/usr/scripts/check-hijacking.sh index 98aa9a5..21c84d0 100755 --- a/DNSCrypt-Preference-Pane/DNSCrypt/extra/usr/scripts/check-hijacking.sh +++ b/DNSCrypt-Preference-Pane/DNSCrypt/extra/usr/scripts/check-hijacking.sh @@ -3,8 +3,8 @@ . ./common.inc try_resolution() { - exec alarmer 5 dig +tries=2 +time=3 +short resolver1.opendns.com \ - | egrep '^208[.]67[.]' > /dev/null 2>&1 + exec alarmer 5 dig +tries=2 +time=3 +short google-public-dns-a.google.com \ + | egrep '^8[.]8[.]8[.]8' > /dev/null 2>&1 } try_http_query() { diff --git a/DNSCrypt-Preference-Pane/DNSCrypt/extra/usr/scripts/check-local-dns.sh b/DNSCrypt-Preference-Pane/DNSCrypt/extra/usr/scripts/check-local-dns.sh index b929c54..0111412 100755 --- a/DNSCrypt-Preference-Pane/DNSCrypt/extra/usr/scripts/check-local-dns.sh +++ b/DNSCrypt-Preference-Pane/DNSCrypt/extra/usr/scripts/check-local-dns.sh @@ -3,8 +3,8 @@ . ./common.inc try_local_resolution() { - exec dig +tries=2 +time=3 +short resolver1.opendns.com @$INTERFACE_PROXY \ - | egrep '^208[.]67[.]' > /dev/null 2>&1 + 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