mailcow/data/Dockerfiles/unbound/healthcheck.sh
2023-10-11 15:48:25 +02:00

13 lines
295 B
Bash

#!/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