INNER CODE UNIT · Shell
$r
IAmStoxe/wirehole · scripts/wirehole-doctor.sh:158
if [[ $r =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
ok "Pi-hole resolves names ($r)."
else
bad "Pi-hole does not resolve names."
fix "Look at the log: docker compose logs pihole"
fi
r="$(docker exec "$PIHOLE_C" dig +short +time=8 wikipedia.org @"$UNBOUND_IP" 2> /dev/null | head -1)"
if [[ -n $r ]]; then
ok "Unbound resolves names by recursion ($r)."
else
bad "Unbound does not answer."
fix "Look at the log: docker compose logs unbound"
fix "A common cause is IPv6. See the file unbound/custom.conf.d/pi-hole.conf"
fi
if docker exec "$PIHOLE_C" dig +dnssec +time=8 cloudflare.com @"$UNBOUND_IP" 2> /dev/null | grep -q '^;; flags.* ad'; then
ok "DNSSEC validation works."