dynclj is a small script to update DynDNS.org hosts. Written in Clojure, it was meant as Clojure learning experience for me.
-
install leiningen
-
in your dynclj checkout, run
lein deps
followed bylein compile
-
create the config file ~/.dynclj/dynclj.conf with three lines:
username= # dyndns username password= # password matching above username hosts=, # comma-separated list of hosts to update
-
run dynclj.sh
- check config file, determine hosts to update
- obtain the current IP address from checkip.dyndns.org
- check cache file (~/.dynclj/dynclj.cache) to determine when each host was last updated, if at all
- update hosts if required
Run ./dynclj.sh --help to see the available command-line arguments. From the help text:
--config-file, -c use specified configuration file --ip force update to use this IP --force force the update --verbose, -v verbose output