Giter Club home page Giter Club logo

synologycloudflareddns's Introduction

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/auy7179/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

synologycloudflareddns's People

Contributors

freedomlover avatar auy7179 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.