ddns-cli

Crates.ioddns-cli
lib.rsddns-cli
version0.3.3
sourcesrc
created_at2019-12-25 10:40:01.789827
updated_at2024-06-10 14:26:50.01473
descriptionddns client for cloudflare and dnspod
homepagehttps://crates.io/crates/ddns-cli
repositoryhttps://github.com/owent/ddns-cli
max_upload_size
id192309
size174,072
OWenT (owt5008137)

documentation

https://github.com/owent/ddns-cli

README

DDNS client

Linux Windows macOS
Build & Publish linux-badge windows-badge macos-badge

Docker: docker.io/owt5008137/ddns-cli

Install https://github.com/docker/buildx to use cross building.

Usage

# help
./ddns-cli -h

# You can get token from https://dash.cloudflare.com/profile/api-tokens and zone id from your domian zone page
./ddns-cli --get-ip-by-url https://myip.biturl.top/ --cf-domain <DOMAIN> --cf-token <Cloudflare TOKEN> --cf-zone-id <Cloudflare ZoneID>

# You can get token and token id from https://console.dnspod.cn/account/token
./ddns-cli --get-ip-by-url https://myip.biturl.top/ --dp-name <SUB DOAMIN NAME> --dp-domain <BASE DOMAIN NAME> --dp-token <Dnspod TOKEN> --dp-token-id <Dnspod token id>
docker/podman pull docker.io/owt5008137/ddns-cli:latest
docker/podman run ddns-cli ddns-cli --get-ip-by-url https://myip.biturl.top/ --cf-domain <DOMAIN> --cf-token <Cloudflare TOKEN> --cf-zone-id <Cloudflare ZoneID>
docker/podman run ddns-cli ddns-cli --get-ip-by-url https://myip.biturl.top/ --dp-name <SUB DOAMIN NAME> --dp-domain <BASE DOMAIN NAME> --dp-token <Dnspod TOKEN> --dp-token-id <Dnspod token id>

LICENSE

MIT or Apache License - 2.0

Commit count: 58

cargo fmt