amirazodi / cloudflare_ddns Goto Github PK
View Code? Open in Web Editor NEWPython-based Dynamic DNS client for CloudFlare.
License: MIT License
Python-based Dynamic DNS client for CloudFlare.
License: MIT License
should "...ipv4 is None and public_ipv4..." be "...ipv4 is None and public_ipv6..." in line 62 of the code cf-ddns.py?
I just installed your script and somehow its not working correctly. I entered my data and ran it. But its creating only the A or the AAAA record and deletes the other.
My config:
{
"domains": [
{
"hosts": [
{
"id": "",
"ipv4": "",
"ipv6": "",
"name": "test",
"types": [
"A",
"AAAA"
]
}
],
"id": "",
"name": "mydomain"
}
],
"user": {
"api_key": "apikey",
"email": "mymail"
}
}
Am I doing something wrong?
Just a quick recommendation for future reference, you should put your author information and github url at the top of your cf-ddns.py file. Someone using your script may want to find the original repo and right now there is no helpful information.
Thanks for your work on this.
How to update the root domain this work with sub-domain only
Hi!
Noticed your comment after a long time since I needed dynamic ip for cloudflare again, updated the script in the proces to list zones, record-id's and made it more modular (flags basically, lol)
https://gist.github.com/larrybolt/6295160
Would you mind giving it a quick review?
I get the following error when running the script on Windows 10 using Python 3.8.1:
Traceback (most recent call last):
File "my\path\cf-ddns.py", line 29, in <module>
with open(config_file_name, 'r') as config_file:
FileNotFoundError: [Errno 2] No such file or directory: 'cf-ddns.conf'
The cf-ddns.conf
file is located in the same directory as the Python file.
Hey! What will I set as the "name" of a host in the .conf file if I want to update the root domain (domain.com)?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.