Some simple scripts. For fun / personal use.
A simple script to update the IP address that a Duck DNS domain name resolves to.
- $DUCKDNS_DOMAIN: The domain you want to update
- $DUCKDNS_TOKEN: The token to use to authenticate the request
- $DUCKDNS_IP: (Optional) The IP address that the provided domain should resolve to — Duck DNS will detect and use the source IP otherwise
*All other Duck DNS API options are optional; I'm aiming for feature parity in the future.
NOTE: command line options override environment variables.
- Invalid arguments
- Failure to find
wget
on the system - No domain provided, by command option or environment variable
- No token provided, by command option or...
- Duck DNS returned a 'normal' bad response (check inputs)
- Duck DNS returned an unexpected error / response
Thanks to the folks at Duck DNS for offering such a great service!