maybe it's actually fixed this time?
This commit is contained in:
@@ -226,18 +226,18 @@ if [ "$external_access_method" -eq 1 ]; then
|
||||
echo -e "${cyan}Checking A record for @...${nc}"
|
||||
a_record_check=$(dig +short A "$domain" @8.8.8.8 2>/dev/null | grep -c "^$publicip$" || echo "0")
|
||||
if [ "$a_record_check" -eq 0 ]; then
|
||||
echo -e "${cyan}⚠️ Warning: A record for @ is not set or not pointing to $publicip${nc}"
|
||||
echo -e "${cyan}Warning: A record for @ is not set or not pointing to $publicip${nc}"
|
||||
else
|
||||
echo -e "${cyan}✅ A record for @ is correctly set to $publicip${nc}"
|
||||
echo -e "${cyan}A record for @ is correctly set to $publicip${nc}"
|
||||
fi
|
||||
|
||||
# Check CNAME record
|
||||
echo -e "${cyan}Checking CNAME record for *...${nc}"
|
||||
cname_record_check=$(dig +short CNAME "*.$domain" @8.8.8.8 2>/dev/null | grep -c "$domain\.$" || echo "0")
|
||||
if [ "$cname_record_check" -eq 0 ]; then
|
||||
echo -e "${cyan}⚠️ Warning: CNAME record for * is not set or not pointing to @${nc}"
|
||||
echo -e "${cyan}Warning: CNAME record for * is not set or not pointing to @${nc}"
|
||||
else
|
||||
echo -e "${cyan}✅ CNAME record for * is correctly set to @${nc}"
|
||||
echo -e "${cyan}CNAME record for * is correctly set to @${nc}"
|
||||
fi
|
||||
|
||||
echo "--------------------------------------------------------"
|
||||
|
||||
Reference in New Issue
Block a user