Skip to content

Freedomlover/SynologyCloudflareDDNS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

SynologyCloudflareDDNS

Install

  1. SSH into your NAS
  2. run as root
sudo -i
  1. Download cloudflareddns.php to /usr/syno/bin/ddns/cloudflareddns.php
wget https://raw.githubusercontent.com/Freedomlover/SynologyCloudflareDDNS/main/cloudflareddns.php -O /usr/syno/bin/ddns/cloudflareddns.php
chmod +x /usr/syno/bin/ddns/cloudflareddns.php
  1. Edit /etc.defaults/ddns_provider.conf
vi /etc.defaults/ddns_provider.conf

Add content to last line

[Cloudflare DDNS]
        modulepath=/usr/syno/bin/ddns/cloudflareddns.php
        queryurl=https://www.cloudflare.com
        website=https://www.cloudflare.com

or

echo "[Cloudflare DDNS]">>/etc.defaults/ddns_provider.conf
echo "        modulepath=/usr/syno/bin/ddns/cloudflareddns.php">>/etc.defaults/ddns_provider.conf
echo "        queryurl=https://www.cloudflare.com">>/etc.defaults/ddns_provider.conf
echo "        website=https://www.cloudflare.com">>/etc.defaults/ddns_provider.conf

Get Cloudflare parameters

  1. Copy your zone ID from domain overvice page
  2. Go to My Profile -> API Tokens -> Create Token Use Edit zone DNS template. Should have the permissions of Zone > DNS > Edit and Zone Resources Include > Specific zone > Your domain. Copy the api token.

Setup DDNS on your DSM

  1. Go to Control Panel -> External Access -> DDNS -> Add
  2. Enter the following
    • Service provider: Cloudflare DDNS
    • Hostname: dsm.domain.com
    • Username/Email: Zone ID
    • Password/Key: API Token

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages