Skip to content

Instantly share code, notes, and snippets.

@eggbean
eggbean / dynu.sh
Last active December 19, 2024 11:16
Secure dynu.com dynamic IP update script using OAuth2 authentication
#!/bin/bash
# dynu.com dynamic IP update script
# variables can be added in file, in sourced file or as command line arguments
set -e
# https://www.dynu.com/en-US/ControlPanel/APICredentials
# oauth2='{Client-Id}:{Secret}'
oauth2='EOJ2S-Z6OoN_le_KS1d75wsZ6y0SFdVsY9183IvxFyZp:EClusMEUk8e9ihI7ZdVLF5cZ6y0SFdVsY9183IvxFyZp'