Coder Social home page Coder Social logo

cloudflare-dynamic-dns's Introduction

Cloudflare-Dynamic-DNS

Bash script to update Dynamic IP for Cloudflare. The script is written to be use on any platform that can run bash script. However, the action_Cloudflare_DDNS.conf is written specifically for OPNSense Custom Cron Job

Use Curl to clone Update_Cloudflare_Dynamic_IP.sh script to your local folder:

curl -LJO https://raw.githubusercontent.com/nn0x96a/Cloudflare-Dynamic-DNS/main/Update_Cloudflare_Dynamic_IP.sh

Step-by-Step Instruction:

https://sysadmin102.com/2023/08/opnsense-dynamic-dns-with-cloudflare-using-a-custom-cron-job/

Set the below parameters for Update_Cloudflare_Dynamic_IP.sh:

TOKEN="Replace with API Token"; ZONE_ID="Replace with Zone ID"; DNS_ID="Replace with DNS ID"; TYPE="A"; NAME="Replace with DNS Record Name";

API Token: https://developers.cloudflare.com/fundamentals/api/get-started/create-token/

Zone ID: https://developers.cloudflare.com/fundamentals/get-started/basic-tasks/find-account-and-zone-ids/

DNS ID: Get DNS Record ID by executing the Get_DNS_ID.sh in Terminal/Command Prompt

actions_Cloudflare_DDNS.conf is a custom Cron Job for OPNSense.

Use the curl command to clone the actions_Cloudflare_DDNS.conf to your local folder:

cd /usr/local/opnsense/service/conf/actions.d

curl -LJO https://raw.githubusercontent.com/nn0x96a/Cloudflare-Dynamic-DNS/main/actions_Cloudflare_DDNS.conf

service configd restart

Credit: special thanks to Steve@Tech Otaku for the API scripts.

Original scripts: https://www.tech-otaku.com/web-development/using-cloudflare-api-manage-dns-records/#435

cloudflare-dynamic-dns's People

Contributors

nn0x96a 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.