https://github.com/owent/ddns-cli
https://github.com/owent/ddns-cli
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/owent/ddns-cli
- Owner: owent
- License: apache-2.0
- Created: 2019-12-20T09:51:26.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-06-10T14:19:02.000Z (12 months ago)
- Last Synced: 2024-10-05T11:41:11.960Z (8 months ago)
- Language: Rust
- Size: 192 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# DDNS client
| | [Linux][linux-link] | [Windows][windows-link] | [macOS][macos-link] |
|:-------------------------:|:-----------------------:|:--------------------------------:|:--------------------------:|
| Build & Publish | ![linux-badge] | ![windows-badge] | ![macos-badge] |[linux-badge]: https://github.com/owent/ddns-cli/workflows/Build%20On%20Linux/badge.svg "Linux build status"
[linux-link]: https://github.com/owent/ddns-cli/actions?query=workflow%3A%22Build+On+Linux%22 "Linux build status"
[windows-badge]: https://github.com/owent/ddns-cli/workflows/Build%20On%20Windows/badge.svg "Windows build status"
[windows-link]: https://github.com/owent/ddns-cli/actions?query=workflow%3A%22Build+On+Windows%22 "Windows build status"
[macos-badge]: https://github.com/owent/ddns-cli/workflows/Build%20On%20macOS/badge.svg "macOS build status"
[macos-link]: https://github.com/owent/ddns-cli/actions?query=workflow%3A%22Build+On+macOS%22 "macOS build status"Docker: [```docker.io/owt5008137/ddns-cli```][4]
Install to use cross building.
## Usage
```bash
# 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 --cf-token --cf-zone-id# 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 --dp-domain --dp-token --dp-token-id
``````bash
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 --cf-token --cf-zone-id
docker/podman run ddns-cli ddns-cli --get-ip-by-url https://myip.biturl.top/ --dp-name --dp-domain --dp-token --dp-token-id
```## LICENSE
[MIT](LICENSE-MIT) or [Apache License - 2.0](LICENSE)
[1]: https://crates.io/crates/handlebars
[2]: https://docs.rs/regex/
[3]: https://github.com/Microsoft/vcpkg
[4]: https://hub.docker.com/r/owt5008137/ddns-cli