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