Trying to update DDNS with a bash script using Api v4


I followed this guide:

I had to create two scripts to update both my @ and www records.

They work but when they update my ip address with cloudflare; it turns the little orange cloud to gray and I have to turn it back on.

Is there a script out there that can update both my A records with my current Dynamic IP without changing the orange cloud?


What value are you setting proxied to wen updating the record?

curl -X PUT "" \
     -H "X-Auth-Email: [email protected]" \
     -H "X-Auth-Key: c2547eb745079dac9320b638f5e225cf483cc5cfdda41" \
     -H "Content-Type: application/json" \
     --data '{"type":"A","name":"","content":"","proxied":true}'


Following that guide the --data points to a cloudflare-ddns-update.json file.

In that file the proxied is set to false.

How can I change this?


Just edit the file and change the value to true.


This topic was automatically closed after 31 days. New replies are no longer allowed.