Skip to content
/ util Public

Some simple scripts. For fun / personal use.

Notifications You must be signed in to change notification settings

jlj77/util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

util

Some simple scripts. For fun / personal use.

Upduck

A simple script to update the IP address that a Duck DNS domain name resolves to.

Available environment variables*

  • $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.

Error codes:

  1. Invalid arguments
  2. Failure to find wget on the system
  3. No domain provided, by command option or environment variable
  4. No token provided, by command option or...
  5. Duck DNS returned a 'normal' bad response (check inputs)
  6. Duck DNS returned an unexpected error / response

Thank you!

Thanks to the folks at Duck DNS for offering such a great service!

About

Some simple scripts. For fun / personal use.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages