healthcheck.sh 295 B

123456789101112
  1. #!/bin/bash
  2. nslookup mailcow.email 127.0.0.1 1> /dev/null
  3. if [ $? == 0 ]; then
  4. echo "DNS resolution is working!"
  5. exit 0
  6. else
  7. echo "DNS resolution is not working correctly..."
  8. echo "Maybe check your outbound firewall, as it needs to resolve DNS over TCP AND UDP!"
  9. exit 1
  10. fi