Using Cloudflare DDNS for Synology DSM 7.x
- Login to your DSM
- Go to Control Panel > Terminal & SNMP > Enable SSH service
- Use your client to access Synology via SSH.
- Use your Synology admin account to connect.
- Use Command
sudo -i
to Root
- Download
cloudflare-ddns-v*.sh
from this repository to/sbin/cloudflare-ddns-v*.sh
wget https://raw.githubusercontent.com/insistent-afk/cloudflare-ddns-for-synology/main/cloudflare-ddns-v4.sh -O /sbin/cloudflare-ddns-v4.sh
- Give others execute permission
chmod +x /sbin/cloudflare-ddns-v4.sh
- Add
cloudflare-ddns-v4.sh
to Synology
cat >> /etc.defaults/ddns_provider.conf << 'EOF'
[Cloudflare IPv4]
modulepath=/sbin/cloudflare-ddns-v4.sh
queryurl=https://www.cloudflare.com
website=https://www.cloudflare.com
EOF
wget https://raw.githubusercontent.com/insistent-afk/cloudflare-ddns-for-synology/main/cloudflare-ddns-v6.sh -O /sbin/cloudflare-ddns-v6.sh
- Give others execute permission
chmod +x /sbin/cloudflare-ddns-v6.sh
- Add
cloudflare-ddns-v6.sh
to Synology
cat >> /etc.defaults/ddns_provider.conf << 'EOF'
[Cloudflare IPv6]
modulepath=/sbin/cloudflare-ddns-v6.sh
queryurl=https://www.cloudflare.com
website=https://www.cloudflare.com
EOF
- Go to your domain overview page and copy your zone ID.
- Go to your profile > API Tokens > Create Token. It should have the permissions of
Zone > DNS > Edit
. Copy the api token.
- Login to your DSM
- Go to Control Panel > External Access > DDNS > Add
- Enter the following:
- Service provider:
Cloudflare IPv*
- Hostname:
xxx.domainname.com
- Username/Email:
<Zone ID>
- Password Key:
<API Token>
- Service provider:
Thank you original from joshuaavalon/SynologyCloudflareDDNS