Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Cloudflare Update DNS IP with bash
ip=$(curl -s
echo "DDNS-UPDATE: Public IP is: $ip, Updating IP..."
curl -X PUT "" \
-H "X-Auth-Email: *******" \
-H "X-Auth-Key: *******" \
-H "Content-Type: application/json" \
--data '{"type":"A","name":"","content":"'"$ip"'","ttl":120,"proxied":false}' )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.