netlify-ddns

Travis-CI Crates.io License

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 a third-party 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

FLAGS: -h, --help Prints help information -V, --version Prints version information

OPTIONS: -d, --domain The full domain for the DNS record -i, --ip-type Whether an IPv6 'AAAA' 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] ```

Related

Check out oscartbeaumont/netlify-dynamic-dns for a similar client written in Go.