Cloudflare DDNS bash Script for most Linux distributions and MacOS. Choose any source IP address to update external or internal (WAN/LAN). Cloudflare's options proxy and TTL configurable via the parameters.
ubuntu@dtest4:~$ sudo /usr/local/bin/update-cloudflare-dns.sh
==> 2023-08-24 00:10:15
==> Internal eth0 IP is: 172.31.173.179
==> DNS record IP of redis.bob.us is 172.31.173.179, no changes needed.
==> DNS record of db.bob.us is: 172.31.161.143. Trying to update...
{"success":false,"errors":[{"code":10000,"message":"PUT method not allowed for the api_token authentication scheme"}]}
Error! Update failed
For now I am just running 2 scripts instead of just one. It would be nice to fix it though.
Thanks, DL
ps I scrubbed my domain names for privacy/security
Multiple A records is not working.
Love it in general though, Thank you!
ubuntu@dtest4:~$ sudo /usr/local/bin/update-cloudflare-dns.sh ==> 2023-08-24 00:10:15 ==> Internal eth0 IP is: 172.31.173.179 ==> DNS record IP of redis.bob.us is 172.31.173.179, no changes needed. ==> DNS record of db.bob.us is: 172.31.161.143. Trying to update... {"success":false,"errors":[{"code":10000,"message":"PUT method not allowed for the api_token authentication scheme"}]} Error! Update failed
For now I am just running 2 scripts instead of just one. It would be nice to fix it though.
Thanks, DL
ps I scrubbed my domain names for privacy/security