- SSH into your NAS
- run as root
sudo -i
- Download cloudflareddns.php to /usr/syno/bin/ddns/cloudflareddns.php
wget https://raw.githubusercontent.com/auy7179/SynologyCloudflareDDNS/main/cloudflareddns.php -O /usr/syno/bin/ddns/cloudflareddns.php
chmod +x /usr/syno/bin/ddns/cloudflareddns.php
- 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
- Copy your zone ID from domain overvice page
- 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.
- Go to Control Panel -> External Access -> DDNS -> Add
- Enter the following
- Service provider: Cloudflare DDNS
- Hostname: dsm.domain.com
- Username/Email: Zone ID
- Password/Key: API Token