diff --git a/cloudflare-template.sh b/cloudflare-template.sh index 7b3efb4..ca0f79b 100644 --- a/cloudflare-template.sh +++ b/cloudflare-template.sh @@ -42,7 +42,7 @@ fi ########################################### echo "$(ds) Check Initiated" >> ~/log -record=$(curl -s -X GET "https://api.cloudflare.com/client/v4/zones/$zone_identifier/dns_records?name=$record_name" -H "X-Auth-Email: $auth_email" -H "X-Auth-Key: $auth_key" -H "Content-Type: application/json") +record=$(curl -s -X GET "https://api.cloudflare.com/client/v4/zones/$zone_identifier/dns_records?name=$record_name" -H "X-Auth-Email: $auth_email" -H "$auth_header $auth_key" -H "Content-Type: application/json") ########################################### ## Check if the domain has an A record