Code Monkey home page Code Monkey logo

cloudflare-ddns-shell's Introduction

English | 简体中文

Cloudflare

Note: the copyright of cloudflare® graphic trademark belongs to cloudflare, Inc.

Cloudflare Dynamic DNS

Dynamic DNS Shell script based on CloudFlare API v4.

Parameter Description

The selected parameters are mandatory parameters:

  • -key: Cloudflare API Authorization Key, interface Token, application address: https://dash.cloudflare.com/profile/api-tokens
  • -zone: domain, for example: renfei.net
  • -zone_id: The unique ID of the domain name on Cloudflare
  • -type: Domain name record type, for example: A record
  • -rec_id: The unique ID of the domain name record
  • -name: Second-level domain name such as www
  • -content: request body content
  • -ttl: Parsing record survival time, 1 is automatic
  • -proxied: Whether to enable CloudFlare proxy

Example

Domain name: test2.renfei.net, first go to Cloudflare to add domain name A record resolution, and manually execute it once:

bash /path/to/cloudflare_ddns.sh -key 404613183ab3971a2118ae5bf03d63e032f9e -zone renfei.net -name test2

Example

Executed by Linux cron timing task

crontab -e
0 */1 * * * ? /path/to/cloudflare_ddns.sh -key 404613183ab3971a2118ae5bf03d63e032f9e -zone renfei.net -name test2 >> /path/to/cloudflare_ddns.log

cloudflare-ddns-shell's People

Contributors

mend-bolt-for-github[bot] avatar renfei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.