mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-01-25 22:09:49 +00:00
Add Google's IPv6 address for potential IPv6 resolver tests
This commit is contained in:
parent
709b44f736
commit
086f0790fc
1 changed files with 9 additions and 3 deletions
|
@ -273,6 +273,12 @@ testResolver() {
|
||||||
local piholedig
|
local piholedig
|
||||||
local remotedig
|
local remotedig
|
||||||
|
|
||||||
|
if [[ ${protocol} == "6" ]]; then
|
||||||
|
g_addr="2001:4860:4860::8888"
|
||||||
|
else
|
||||||
|
g_addr="8.8.8.8"
|
||||||
|
fi
|
||||||
|
|
||||||
# Find a blocked url that has not been whitelisted.
|
# Find a blocked url that has not been whitelisted.
|
||||||
url=$(shuf -n 1 "${GRAVITYFILE}" | awk -F ' ' '{ print $2 }')
|
url=$(shuf -n 1 "${GRAVITYFILE}" | awk -F ' ' '{ print $2 }')
|
||||||
|
|
||||||
|
@ -296,11 +302,11 @@ testResolver() {
|
||||||
log_write ""
|
log_write ""
|
||||||
|
|
||||||
|
|
||||||
log_write "Resolution of ${testurl} from 8.8.8.8:"
|
log_write "Resolution of ${testurl} from ${g_addr}:"
|
||||||
if remotedig=$(dig -"${protocol}" "${testurl}" @8.8.8.8 +short); then
|
if remotedig=$(dig -"${protocol}" "${testurl}" @${g_addr} +short); then
|
||||||
log_write "${remotedig:-NXDOMAIN}"
|
log_write "${remotedig:-NXDOMAIN}"
|
||||||
else
|
else
|
||||||
log_write "Failed to resolve ${testurl} on 8.8.8.8"
|
log_write "Failed to resolve ${testurl} on ${g_addr}"
|
||||||
fi
|
fi
|
||||||
log_write ""
|
log_write ""
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue