Blog

DynDNS Lite!

Mar 3, 2010
Category:Linux Bash 

As my IP address changes so rarely, my Dynamic DNS accounts keep expiring before the IP changes!

Here is a cron line to download my ip address from whatismyip.org and then upload it via ssh to a file on a server every hour!

00 * * * * curl whatismyip.org 2>/dev/null | ssh user@server.tld "cat >ip.txt"

Comments