so a couple of weeks ago i decided to write a dreamhost dns updater even though ttl is 4 hours.

This script uses your dreamhost api key (assuming it has dns access), to either check, delete, list, or update your ip address for a given record in dreamhost. Makes dynamic dns possible with dreamhost except for the four hour time to live (ttl). If you need a faster dynamic dns service, try DynDNS.

Here it is.


Usage : dh-dyndns [option] <value> <action>
  Options:
    -h | --help   | help        shows this message
    -d | --domain | domain      domain which will be used (ex.: foo.bar.baz)
    -k | --key    | key         dreamhost api key
    -o | --option | option      actions to perform. listed below

  Actions:
    check           this checks whether existing ip is same as new.
    delete          this will delete record.
    exist           this will show you the existing ip address in record.
    list            shows you existing record according to domain.
    new             this will show you the new ip.
    update          this performs update of ip address according to whatever is
                    grabbed by check in script.

Sample Usage:
  update record: dh-dyndns -k ################ -d foo.bar.baz -o update

  check record : dh-dyndns -k ################ -d foo.bar.baz -o check

  update record: dh-dyndns -k ################ -d foo.bar.baz -o update

  help         : dh-dyndns -h