Skip to content

mikem/dynclj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dynclj

dynclj is a small script to update DynDNS.org hosts. Written in Clojure, it was meant as Clojure learning experience for me.

Quick Start

  1. install leiningen

  2. in your dynclj checkout, run lein deps followed by lein compile

  3. 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

  4. run dynclj.sh

How it Works

  1. check config file, determine hosts to update
  2. obtain the current IP address from checkip.dyndns.org
  3. check cache file (~/.dynclj/dynclj.cache) to determine when each host was last updated, if at all
  4. update hosts if required

Command-line Arguments

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

About

DynDNS client written in Clojure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published