add domain tester

This commit is contained in:
Nico Schottelius 2023-09-29 11:52:14 +02:00
parent d883dba5c5
commit 9ac0ed0750
1 changed files with 14 additions and 0 deletions

14
bin/test-domains.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
for url in \
https://corp-serv.net/.well-known/matrix/client \
https://corp-serv.net/.well-known/matrix/server \
https://element.corp-serv.net/ \
https://synapse.corp-apps.com/_matrix/client/versions; \
do
domain=$(echo $url | sed -e 's,https://,,' -e 's,/.*,,')
echo dig $domain
dig +short $domain
echo curl $url
curl -I $url
done