fire1ce / DDNS-Cloudflare-Bash

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.
https://3os.org
261 stars 61 forks source link

Multiple A records not wokring. #17

Closed dbline closed 1 year ago

dbline commented 1 year ago

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

fire1ce commented 1 year ago

you have space in the config after the comma between the domains

dns_record="ddns.example.com,ddns2.example.com"
aybab2 commented 5 months ago

https://github.com/fire1ce/DDNS-Cloudflare-Bash/issues/25#issue-2281059659