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
Built Distribution
File details
Details for the file simple-cfddns-1.0.2.tar.gz
.
File metadata
- Download URL: simple-cfddns-1.0.2.tar.gz
- Upload date:
- Size: 18.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 509ca737740084eb9c1ac5fe2e56bc350596610b43fd692fe8068f6f996453fa |
|
MD5 | 58fda9a128d899dbd34ad98364186f5f |
|
BLAKE2b-256 | 578360a53e696577e5169a164fcb8291bb33ec4746bc51389c918c1516c359bc |
File details
Details for the file simple_cfddns-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: simple_cfddns-1.0.2-py3-none-any.whl
- Upload date:
- Size: 19.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f5c7f73e29f68256e3c62d547a30ba0fb8985fcd09fcb04df2396a0417548c9f |
|
MD5 | ecaac58a19c6a31f026e20311d13db2d |
|
BLAKE2b-256 | 04dcfc4c1e78edbe523d53e918d1235d46b99ffb772d5176431646c87d4cc19a |