Back to Trending
RepositoryShell
JO

joshuaavalon/SynologyCloudflareDDNS

📜 Cloudflare DDNS script for Synology

668stars
168forks
3issues
0views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: cloudflare-api

#1 Repository of the month

1
TINIX TRENDING·Topic: synology-nas

#1 Repository of the month

1
TINIX TRENDING·Topic: synology

#1 Repository of the month

Synology Cloudflare DDNS Script 📜

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.

How to use

Access Synology via SSH

  1. Login to your DSM
  2. Go to Control Panel > Terminal & SNMP > Enable SSH service
  3. Use your client to access Synology via SSH.
  4. Use your Synology admin account to connect.

Run commands in Synology

  1. Download cloudflareddns.sh from this repository to /sbin/cloudflareddns.sh
wget 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.

  1. Give others execute permission
chmod +x /sbin/cloudflareddns.sh
  1. Add cloudflareddns.sh to Synology
cat >> /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.

Get Cloudflare parameters

  1. Go to your domain overview page and copy your zone ID.
  2. Go to your profile > API Tokens > Create Token. It should have the permissions of Zone > DNS > Edit. Copy the api token.

Setup DDNS

  1. Login to your DSM
  2. Go to Control Panel > External Access > DDNS > Add
  3. Enter the following:
    • Service provider: Cloudflare
    • Hostname: www.example.com
    • Username/Email: <Zone ID>
    • Password Key: <API Token>

Similar Projects

Discover other similar projects and AI models.

RepositoryShell
007revad/Synology_HDD_db

Add your HDD, SSD and NVMe drives to your Synology's compatible drive database and a lot more

6.1k
Nov 16, 2026
RepositoryShell
007revad/Synology_HDD_db

Add your HDD, SSD and NVMe drives to your Synology's compatible drive database and a lot more

6.1k
Nov 16, 2026
RepositoryShell
vdsm/virtual-dsm

Virtual DSM in a Docker container.

4.0k
Nov 15, 2026
RepositoryShell
007revad/Synology_M2_volume

Easily create an M.2 volume on Synology NAS

1.5k
Oct 31, 2026
RepositoryShell
007revad/Synology_app_mover

Easily move Synology packages from 1 volume to another volume, or backup and restore

1.2k
Oct 9, 2026
RepositoryShell
007revad/Synology_enable_M2_volume

Enable creating volumes with non-Synology M.2 drives

792
Nov 2, 2026
RepositoryShell
007revad/Synology_enable_M2_volume

Enable creating volumes with non-Synology M.2 drives

792
Nov 2, 2026
RepositoryShell
eizedev/AirConnect-Synology

Updated AirConnect packages for Synology NAS and Synology Router

368
Nov 23, 2026
RepositoryShell
007revad/Synology_enable_Deduplication

Enable deduplication with non-Synology SSDs and unsupported NAS models

347
Sep 10, 2026