Giter Site home page Giter Site logo

woolweaver / python-cloudflare-ddns Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 35 KB

Cloudflare Dynamic DNS via Python 3

Home Page: https://python-cloudflare-ddns.woolweaver.bid

License: The Unlicense

Python 100.00%
cloudflare-dns cloudflare-ddns cloudflare-dynamic-dns cloudflare-dns-api cloudflare-api

python-cloudflare-ddns's Introduction

Cloudflare Dynamic DNS via Python 3

https://github.com/woolweaver-bid/python-cloudflare-ddns

How To Use

In config/tokens.py you will see the following variables. Make sure you change these. I have included some information about how to get these

1. Get Code

git clone https://github.com/mwoolweaver/python-cloudflare-ddns.git

2. Install dependencies

cd python-cloudflare-ddns
pip3 install -r requirements.txt

3. Getting/Creating API Tokens

https://dash.cloudflare.com/profile/api-tokens

headers = {

    'Authorization': 'Your-API-Token', # Get/Create API token here ---> https://dash.cloudflare.com/profile/api-tokens

    'Content-Type': 'application/json' # Type of data to be passed must be application/json
}

4. Getting Zone ID's

https://api.cloudflare.com/#getting-started-resource-ids

zoneID = 'Zone-ID-For-Domain' # Zone ID for domain we need to change

5. Getting DNS Record ID

https://api.cloudflare.com/#dns-records-for-a-zone-list-dns-records

dnsID = 'DNS-ID-For-SubDomain' # DNS ID for subdomain we want to change

6. Runnig

./cf_ddns.py

python-cloudflare-ddns's People

Contributors

mwoolweaver avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

python-cloudflare-ddns's Issues

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.