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.1.tar.gz
.
File metadata
- Download URL: simple-cfddns-1.0.1.tar.gz
- Upload date:
- Size: 18.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94a2e6671158fc048deeac382d987636814f74c6b0cb992887c9ec0b7f884225 |
|
MD5 | a29c909cbe314f15766e4a73b746e71f |
|
BLAKE2b-256 | 97d3259c9180cd19b9a22a2cbbeed64565f4d348cac3cfa7c22ca7e7b22c77c4 |
File details
Details for the file simple_cfddns-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: simple_cfddns-1.0.1-py3-none-any.whl
- Upload date:
- Size: 19.0 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 | 0ced5915a6ea4f408df8c0df87bd5bf5a89a7ccaadb92b606a3499fa7b6c6ada |
|
MD5 | ae6e06a88bed78a2b648ca84d0c06cf9 |
|
BLAKE2b-256 | 0b734753f1ad01c7799adf5472d8e923879410e5d9e12ff3a09002aeb2dac9fd |