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

API Authentication Error #3

Closed vaughngx4 closed 2 years ago

vaughngx4 commented 2 years ago

I've run the script and gotten the following in my output(separately):

update-cloudflare-dns.sh: line 110: [: ==: unary operator expected

{"success":false,"errors":[{"code":10000,"message":"PUT method not allowed for the api_token authentication scheme"}]}

Steps to reproduce:

1) Download script and config 2) Set Zone ID and API Token (DNS Permissions for this zone only) 3) Set domain 4) Run script

fire1ce commented 2 years ago

as the error output, api_token authentication scheme is not set corrent. not the script problem.

vaughngx4 commented 2 years ago

To anyone else who might land here:

Default DNS permissions cannot create a record. Creating a record with whatever IP and then running the script works.

fire1ce commented 2 years ago

@vaughngx4

you just had to read the Requirements

image

vaughngx4 commented 2 years ago

@fire1ce Just missed it, apologies. Had bigger fish to fry.