GithubHelp home page GithubHelp logo

fbrettnich / cloudflare-dyndns-php Goto Github PK

View Code? Open in Web Editor NEW
22.0 1.0 5.0 155 KB

Cloudflare DDNS | Simple DynDNS API for Cloudflare for self-hosting | Ideal for QNAP & Synology NAS

License: MIT License

PHP 100.00%
cloudflare ddns ddns-script api synology synology-ddns synology-nas cloudflare-ddns qnap-ddns qnap

cloudflare-dyndns-php's Introduction

Cloudflare-DDNS

Simple DynDNS API for Cloudflare for self-hosting | Ideal for QNAP & Synology NAS

With this small but nice interface, it is possible to host your own api to use Cloudflare domains for your DynDNS on QNAP or Synology NAS systems
The API responds with JSON and matching status codes for QNAP and Synology systems


Required information:

  • Cloudflare Account email
  • Cloudflare Global API Key (not Origin CA Key)
  • Cloudflare Domain (like example.com)
  • DNS Record (like my-ddns.example.com)

DynDNS for QNAP NAS

Network- and Virtual Switch -> DDNS -> Add -> Select DNS server: Customized

QNAP DDNS

https://api.example.com/cloudflare/ddns.php?email=%USER%&api_key=%PASS%&domain=example.com&record=%HOST%&ip=%IP%&ttl=120

DynDNS for Synology NAS

System Controls -> External Access -> Customize

Synology DDNS Provider

System Controls -> External Access -> Add

Synology DDNS

https://api.example.com/cloudflare/ddns.php?email=__USERNAME__&api_key=__PASSWORD__&domain=example.com&record=__HOSTNAME__&ip=__MYIP__&ttl=120

DynDNS for Linux

cURL Command

curl 'https://api.example.com/cloudflare/[email protected]&api_key=XXXX&domain=example.com&record=my-ddns.example.com&ip=1.1.1.1&ttl=120'

Cronjob every 5 minutes

*/5 * * * * curl -s 'https://api.example.com/cloudflare/[email protected]&api_key=XXXX&domain=example.com&record=my-ddns.example.com&ip=1.1.1.1&ttl=120' >/dev/null 2>&1

To get your public IP address you can use the following cURL command:

curl https://ipinfo.io/ip

cloudflare-dyndns-php's People

Contributors

fbrettnich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

cloudflare-dyndns-php's Issues

How Do you use this?

i have been beating my head to use this. is this still applicable? sorry but the instructions are vague to me. tring to use this on a qnap box.

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.