A simple Cloudflare DDNS service
Project description
simple cfddns
A simple that conviently set up a DDNS service based on Cloudflare.
install
pip3 install simple-cfddns
usage
update a record, or create if not exist:
cfddns \
-z <zone_id>\
-t <token>\
-n example-ddns.yourdomain\
update
list all records on a domain:
cfddns \
-z <zone_id>\
-t <token>\
-n example-ddns.yourdomain\
list
delete all records on a domain:
cfddns \
-z <zone_id> \
-t <token> \
-n example-ddns.yourdomain \
delete
run as a systemd service
In general, we want this program to run periodically and automatically restart in the event of any exception. To achieve this, we can install "simple-cfddns" as a systemd service.
install a new cfddns service:
prog=$(which cfddns)
sudo $prog \
-z <zone_id> \
-t <token> \
-n example-ddns.yourdomain \
install default
this will create a service with name "cfddns-default". you can create multiple cfddns services given that they have different names.
then, start and enable it:
sudo systemctl start cfddns-default
sudo systemctl enable cfddns-default
list all cfddns services
cfddns services
uninstall a service
prog=$(which cfddns)
sudo $prog uninstall default
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
simple-cfddns-1.0.0.tar.gz
(18.6 kB
view hashes)
Built Distribution
Close
Hashes for simple_cfddns-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8dfcdca4bebdb3f434f6b97194c808cf2fa112ab9385e7cdcc1f9d66d8951316 |
|
MD5 | e6f3871d0cf12d25b217068b6593470f |
|
BLAKE2b-256 | a326d42079c3cf916bed5794a7f17b056ccb404fc7b96c727cd2cbd94234129f |