Crates.io | netlify-ddns |
lib.rs | netlify-ddns |
version | 0.3.4 |
source | src |
created_at | 2019-08-28 23:35:21.154255 |
updated_at | 2024-01-19 21:51:17.46188 |
description | A simple CLI tool for setting Netlify DNS records dynamically. |
homepage | |
repository | https://github.com/lukehsiao/netlify-ddns-rs |
max_upload_size | |
id | 160535 |
size | 76,395 |
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.
Install using cargo:
cargo install netlify-ddns
A simple CLI tool for setting Netlify DNS records dynamically.
Usage: netlify-ddns [OPTIONS] --domain <DOMAIN> --token <TOKEN>
Options:
-d, --domain <DOMAIN> The full domain for the DNS record
-s, --subdomain <SUBDOMAIN> The subdomain segment for the DNS record [default: www]
--ttl <TTL> The TTL value in seconds to set with the record [default: 3600]
-i, --ip-type <IP_TYPE> Whether an IPv6 "AAAA" or an IPv4 "A" record should be updated [default: ipv4] [possible values: ipv4, ipv6]
-t, --token <TOKEN> Your Netlify personal access token [env: NETLIFY_TOKEN=]
-h, --help Print help information
-V, --version Print version information
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>