I set it up as 24/7 internet radio at home, but more interesting is that it also uses godaddy.com as free DDNS. What needs to be done is described here. My implementation is maybe slightly different.:
1) add "A" record to my domain to serve as a pointer to my router. Hast to be pointing to an IP. with TTL 600s
2) Go to https://developer.godaddy.com/keys to get the api_key and key_secret. Secret will be shown only once ever. So remember!
3) Write the script:
#!/bin/bashmydomain="mydomain.org"myhostname="mygatewayip"gdapikey="api_key:key_secret"logdest="local7.info"myip=`curl -k -s "https://api.ipify.org"`dnsdata=`curl -s -X GET -H "Authorization: sso-key ${gdapikey}" "https://api.godaddy.com/v1/domains/${mydomain}/records/A/${myhostname}"`gdip=`echo $dnsdata | cut -d ',' -f 1 | tr -d '"' | cut -d ":" -f 2`echo `date +%Y-%m-%d" "%H:%M:%S`" - Current External IP is $myip, GoDaddy DNS IP for the host:${myhostname}.${mydomain} is ${gdip}"if [ "$gdip" != "$myip" -a "$myip" != "" ]; then echo "IP has changed!! Updating on GoDaddy" curl -s -X PUT "https://api.godaddy.com/v1/domains/${mydomain}/records/A/${myhostname}" -H "Authorization: sso-key ${gdapikey}" -H "Content-Type: application/json" -d "[{\"data\": \"${myip}\"}]" logger -p $logdest "Changed IP on ${hostname}.${mydomain} from ${gdip} to ${myip}"fi4) Ensure that linux cron process is enabled and edit /etc/crontab file and enter following: */60 * * * * /usr/local/sbin/gd-dyndns > /dev/null that will ensure scrip execution every 60 minutes