maybe it's actually fixed this time?

This commit is contained in:
2026-03-09 10:13:09 +01:00
parent 2358b986a8
commit f1654f2d43

View File

@@ -226,18 +226,18 @@ if [ "$external_access_method" -eq 1 ]; then
echo -e "${cyan}Checking A record for @...${nc}" 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") 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 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 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 fi
# Check CNAME record # Check CNAME record
echo -e "${cyan}Checking CNAME record for *...${nc}" 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") 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 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 else
echo -e "${cyan}CNAME record for * is correctly set to @${nc}" echo -e "${cyan}CNAME record for * is correctly set to @${nc}"
fi fi
echo "--------------------------------------------------------" echo "--------------------------------------------------------"