|
|
%!s(int64=2) %!d(string=hai) anos | |
|---|---|---|
| .github | %!s(int64=6) %!d(string=hai) anos | |
| .gitattributes | %!s(int64=6) %!d(string=hai) anos | |
| CHANGELOG.md | %!s(int64=6) %!d(string=hai) anos | |
| LICENCE | %!s(int64=6) %!d(string=hai) anos | |
| README.md | %!s(int64=6) %!d(string=hai) anos | |
| cloudflareddns.sh | %!s(int64=2) %!d(string=hai) anos |
The is a script to be used to add Cloudflare as a DDNS to Synology NAS. The script used an updated API, Cloudflare API v4.
cloudflareddns.sh from this repository to /sbin/cloudflareddns.shwget https://raw.githubusercontent.com/joshuaavalon/SynologyCloudflareDDNS/master/cloudflareddns.sh -O /sbin/cloudflareddns.sh
It is not a must, you can put I whatever you want. If you put the script in other name or path, make sure you use the right path.
chmod +x /sbin/cloudflareddns.sh
cloudflareddns.sh to Synologycat >> /etc.defaults/ddns_provider.conf << 'EOF'
[Cloudflare]
modulepath=/sbin/cloudflareddns.sh
queryurl=https://www.cloudflare.com
website=https://www.cloudflare.com
E*.
queryurl does not matter because we are going to use our script but it is needed.
Zone > DNS > Edit. Copy the api token.Cloudflarewww.example.com<Zone ID><API Token>