cloudron-support: dig does not return error on SERVFAIL

This commit is contained in:
Girish Ramakrishnan
2024-07-01 07:57:21 +02:00
parent 939cd94ebb
commit 9c34727e88

View File

@@ -202,9 +202,9 @@ function send_diagnostics() {
}
function check_dns() {
if ! dig cloudron.io +short &>/dev/null; then
if ! host cloudron.io &>/dev/null; then
fail "DNS is not resolving"
dig cloudron.io
host cloudron.io
exit 1
fi
@@ -228,9 +228,9 @@ function check_unbound() {
exit 1
fi
if ! dig cloudron.io @127.0.0.150 +short &>/dev/null; then
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 --use-external-dns' option"
dig cloudron.io @127.0.0.150
host cloudron.io 127.0.0.150
exit 1
fi