Fixed gluerecords script

This commit is contained in:
root 2023-06-19 14:31:09 +00:00
parent e7a47e171b
commit 6155658029

View File

@ -33,7 +33,13 @@ check_gluerecords() {
echo -ne "* Glue records are correct!\n\n"
}
DOMAIN_NEW="federated.sh"
usage() {
echo "$0: <domain.com>"
exit 2
}
[ $# != 1 ] && usage
DOMAIN_NEW=$1
EXTERNALIP=`dig @resolver4.opendns.com myip.opendns.com +short 2> /dev/null`
[ $? -ne 0 ] && failcheck "Couldn't run dig, dns is not working"
check_gluerecords