netlify-ddns

netlify-ddns is a simple command line tool for creating a DNS record for
Netlify's Managed DNS service. It is meant to be run as a cron job
and queries third-parties (multiple, in case one is down) for your public IP,
then updates or adds a DNS record using the Netlify API.
Installation
Install using cargo:
cargo install netlify-ddns
Usage
```
netlify-ddns
A simple CLI tool for setting Netlify DNS records dynamically.
USAGE:
netlify-ddns [OPTIONS] --domain --token
OPTIONS:
-d, --domain The full domain for the DNS record
-h, --help Print help information
-i, --ip-type Whether an IPv6 "AAAA" or an IPv4 "A" record should be updated
[default: ipv4] [possible values: ipv4, ipv6]
-s, --subdomain The subdomain segment for the DNS record [default: www]
-t, --token Your Netlify personal access token [env: NETLIFY_TOKEN=]
--ttl The TTL value in seconds to set with the record [default: 3600]
-V, --version Print version information
```
Example Cronjob
You could set a cronjob to update the dev.example.com
hourly with a task like
the following.
0 * * * * netlify-ddns -d example.com -s dev --token=<your token>
Related
- [oscartbeaumont/netlify-dynamic-dns] for a similar client written in Go.
- [lytedev/netlify-ddns] for a simple shell script version.
- [skylerwlewis/netlify-ddns.sh] for another simple script version.