Use google-public-dns-a.google.com for testing connectivity

OpenDNS authoritative servers seem to be slower.
This commit is contained in:
Alter Step
2014-04-28 17:44:03 -07:00
parent 917aa0034b
commit 20b40f8cd9
2 changed files with 4 additions and 4 deletions
@@ -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() {
@@ -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