Update DynDNS from the command line

My router is not updating DynDNS correctly, so I wanted to use a simple cron job to do the same. Here is a simple BASH/Shell script to update DynDNS:

IP=$(curl -s icanhazip.com)
curl -v -k -u username:password “https://members.dyndns.org/nic/update?hostname=DNSHOSTNAME.dyndns.org&myip=$IP”


Posted

in

, ,

by

Tags:

Comments

One response to “Update DynDNS from the command line”

  1. Dieter Avatar
    Dieter

    Great Little cli tweak !