Skip to main content

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.3.tar.gz (18.8 kB view details)

Uploaded Source

Built Distribution

simple_cfddns-1.0.3-py3-none-any.whl (19.1 kB view details)

Uploaded Python 3

File details

Details for the file simple-cfddns-1.0.3.tar.gz.

File metadata

  • Download URL: simple-cfddns-1.0.3.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

Hashes for simple-cfddns-1.0.3.tar.gz
Algorithm Hash digest
SHA256 db59531c9f04b82e34fb23de5ca8731d5e027550e54c96d9419ea513da99bb42
MD5 1efdf3ce9c26d1c9e604f3d6b3e889ae
BLAKE2b-256 fe9c4f8d13f7306d78ed2143acc18d11ffb0fba2feaf19c23a060bc753aa9dc9

See more details on using hashes here.

File details

Details for the file simple_cfddns-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for simple_cfddns-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 608d4773460331ff8899777cdbcc269101a2993708984402a31c0b6ab097a6e5
MD5 c14ca52f9bc170450b9d0d3368144e94
BLAKE2b-256 bd7ea3628d9d91f280a2e763d318d4f018e4e10730e81be6f9ed6f4fb2620697

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page