mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-24 02:03:23 +00:00
[Unbound] Added Healthcheck (nslookup)
This commit is contained in:
1 parent
1fda71e4fa
commit
eb3be80286
2 files changed
+17
No files matched your search
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
nslookup mailcow.email 127.0.0.1 1> /dev/null
|
||||
|
||||
if [ $? == 0 ]; then
|
||||
echo "DNS resolution is working!"
|
||||
exit 0
|
||||
else
|
||||
echo "DNS resolution is not working correctly..."
|
||||
echo "Maybe check your outbound firewall, as it needs to resolve DNS over TCP AND UDP!"
|
||||
exit 1
|
||||
fi
|
||||
Reference in new issue
Block a user