Skip to content

Instantly share code, notes, and snippets.

@renne
renne / dyndns2.sh
Created January 13, 2024 16:07
Dyndns2 Bash update script
#!/bin/bash
if [ -r "${0%.sh}.conf" ]; then {
. "${0%.sh}.conf"
} else {
echo -e "\n\tAdd the variables HOSTNAME, USERNAME and PASSWORD to the file ${0%.sh}.conf, adjust the update URL and run this script once a minute!\n"
}; fi
DIG="`which dig` +short"