diff --git a/README.md b/README.md index 6c717dba400ae542eaf78373e788168b5a2bc2a9..2d8cce7d007eafcd84682b3479737436d98d8c99 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,12 @@ dyndnsd-client ============== -Client for the [`dyndnsd`](https://github.com/cmur2/dyndnsd) daemon. +Client for the [`dyndnsd`](https://github.com/cmur2/dyndnsd) daemon. Set up `dyndnsd` first, otherwise this is useless. + +## Configuration + +Copy `config-sample.json` to `config.json` and update the values. + +## Use + +Set up a cron entry to run the program periodically, or manually call it when your IP address changes. The program accepts no arguments, as `config.json` handles everything. diff --git a/dyndnsd-client.go b/dyndnsd-client.go index 6dfc0b19bbaaa4ae54cd86f73c4966b0c5cae86e..def18096e21f51f8b13f4a2ef0aaecc1e3403e17 100644 --- a/dyndnsd-client.go +++ b/dyndnsd-client.go @@ -18,7 +18,7 @@ var ( logger *log.Logger ) -// Parse config +// Preparations func init() { // Logging logOpts := log.Ldate | log.Ltime | log.LUTC | log.Lshortfile