Matthias Andreas Benkard | d1f5b68 | 2023-11-18 13:18:30 +0100 | [diff] [blame^] | 1 | #!/bin/bash |
2 | |||||
3 | nslookup mailcow.email 127.0.0.1 1> /dev/null | ||||
4 | |||||
5 | if [ $? == 0 ]; then | ||||
6 | echo "DNS resolution is working!" | ||||
7 | exit 0 | ||||
8 | else | ||||
9 | echo "DNS resolution is not working correctly..." | ||||
10 | echo "Maybe check your outbound firewall, as it needs to resolve DNS over TCP AND UDP!" | ||||
11 | exit 1 | ||||
12 | fi |