2024-05-20 01:53:10 +00:00
|
|
|
#!/usr/bin/env nix-shell
|
2024-05-25 03:49:33 +00:00
|
|
|
#!nix-shell -i bash -p curl -p dig -p iputils
|
2024-05-20 01:53:10 +00:00
|
|
|
set -eu
|
|
|
|
|
|
|
|
echo "this script will check that uninsane.org is baseline operational"
|
|
|
|
echo "it doesn't check all services, just the most critical ones"
|
|
|
|
echo ""
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
|
|
|
nslookup uninsane.org. > /dev/null || echo "uninsane.org. DNS not reachable"
|
|
|
|
nslookup uninsane.org. 1.1.1.1 > /dev/null || echo "uninsane.org. DNS not reachable via external resolver"
|
|
|
|
nslookup uninsane.org. ovpns.uninsane.org > /dev/null || echo "uninsane.org. bootstrap DNS not reachable"
|
|
|
|
|
|
|
|
curl --silent --fail-with-body https://uninsane.org > /dev/null || echo "https://uninsane.org not online"
|
|
|
|
curl --silent --fail-with-body https://matrix.uninsane.org > /dev/null || echo "https://matrix.uninsane.org not online"
|
|
|
|
curl --silent --fail-with-body https://fed.uninsane.org > /dev/null || echo "https://fed.uninsane.org not online"
|
|
|
|
|
|
|
|
nslookup -querytype=TXT _dmarc.uninsane.org. > /dev/null || echo "missing DMARC record for uninsane.org"
|
|
|
|
|
2024-05-25 03:49:33 +00:00
|
|
|
ping -c 1 -W 3 servo-hn >/dev/null || echo "servo-hn not pingable"
|
|
|
|
|
2024-05-20 01:53:10 +00:00
|
|
|
set +x
|
|
|
|
echo ""
|
|
|
|
echo "SUCCESS"
|
|
|
|
echo "now manually test email services:"
|
|
|
|
echo "- <https://www.appmaildev.com/en/dkim>"
|