query root dns to detect udp 53 blockage
This commit is contained in:
@@ -329,7 +329,12 @@ function check_unbound() {
|
||||
fi
|
||||
|
||||
if ! host cloudron.io 127.0.0.150 &>/dev/null; then
|
||||
fail "Unbound is not resolving, maybe try forwarding all DNS requests. You can do this by running 'cloudron-support --unbound-forward-dns' option"
|
||||
if ! host -t NS . 198.41.0.4 &>/dev/null; then # the IP is DNS A root server IP
|
||||
fail "Unbound is not resolving. Outbound DNS requests are blocked. Use 'cloudron-support --unbound-forward-dns <dns>' to forward DNS requests."
|
||||
else
|
||||
fail "Unbound is not resolving. However, Outbound DNS requests are not blocked. Investigate output of 'journactl -u unbound'"
|
||||
fi
|
||||
|
||||
host cloudron.io 127.0.0.150
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user