Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mange/cloudflare-dyndns-rs
Update a Cloudflare DNS record to the external IP of your network
https://github.com/mange/cloudflare-dyndns-rs
Last synced: 18 days ago
JSON representation
Update a Cloudflare DNS record to the external IP of your network
- Host: GitHub
- URL: https://github.com/mange/cloudflare-dyndns-rs
- Owner: Mange
- License: mit
- Created: 2018-12-29T23:00:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-05T19:54:54.000Z (10 months ago)
- Last Synced: 2024-03-06T09:26:37.483Z (10 months ago)
- Language: Rust
- Size: 74.2 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cloudflare-dyndns-rs
Updates a Cloudflare DNS entry to the machine's external IP.
Use this on your home network to emulate "dyndns" features.
Written in Rust and distributed as a Docker image.
## Usage
```
Usage: cloudflare-dyndns-rs [OPTIONS] --token <--zone-id |--zone-name >Arguments:
The name of the DNS record to update ("example.com") [env:
CLOUDFLARE_DNS_RECORD]Options:
-v, --verbose
Increase log output to show what the application is doing
-n, --dry-run
Don't actually update the DNS record and instead only exit with the
IP that would be written
-h, --help
Print help
-V, --version
Print versionCloudflare:
-t, --token
The Cloudflare API token [env: CLOUDFLARE_API_TOKEN]
--zone-id
The name of the zone to update ("6d3cf337c06d898fc4743293fda5ea3a")
[env: CLOUDFLARE_ZONE_ID]
--zone-name
The name of the zone to update ("example.com"). If no Zone ID is set,
then this name is used to look up the Zone ID using the API [env:
CLOUDFLARE_ZONE_NAME]
--cloudflare-api-url
Custom Cloudflare API base URL. Will use Cloudflare Production if not
specified [env: CLOUDFLARE_API_URL]IP:
--ip-timeout
Request timeout for IP services [default: 5]
--verify
Talk to all available IP services and check that an absolute majority
of them have the same answer before making any changes. Use this if
you are extra paranoid and don't want a hacked or buggy service to be
able to give you the wrong IP back
```### Configuration
This utility supports configuration via command line argument, through ENV
variables, and through `.env` files. The `--help` output lists the named
environment variable to use for each option. CLI arguments override ENV
variables, when provided.## License
Released under the MIT license. See `LICENSE` file.
Copyright (c) 2018-2024 Magnus Bergmark