Skip to content

Commit

Permalink
chore: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
nrdxp committed Sep 18, 2023
1 parent 80a365e commit 56c8d3b
Showing 1 changed file with 16 additions and 49 deletions.
65 changes: 16 additions & 49 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@ Reimplementation of [cloudflare-dyndns](https://github.com/colemickens/cloudflar

## status known issues

* this is barely in maintenance mode, it seems to have been broken at times without many folks noticing, myself included
* paging is not implemented
* some basic CI should be added, since I haven't officially abandoned this (yet)
* I'm wary of Cloudflare these days, YMMV
* some basic CI should be added

## building

* use cargo
`cargo build`

## usage

* simple test CLI usage

```shell
[cole@zeph:~/code/cfdyndns]$ env | grep CLOUDFLARE

[cole@zeph:~/code/cfdyndns]$ export CLOUDFLARE_RECORDS=test-cfdyndns.mickens.us

[cole@zeph:~/code/cfdyndns]$ export CLOUDFLARE_APITOKEN="m1D9WwLDE6lz2hYpU_5MtkpzBpFvEYS3ZuOGB2Va"

[cole@zeph:~/code/cfdyndns]$ cargo run
Finished dev [unoptimized + debuginfo] target(s) in 0.06s
Running `target/debug/cfdyndns`
test-cfdyndns.mickens.us (1.2.3.4 -> 72.209.157.122)...
Usage: cfdyndns [OPTIONS]

Options:
-r, --records <RECORDS> Comma separated DNS records to update with the host's public IP [env:
CLOUDFLARE_RECORDS=panzy.nrd.sh,panzy.nrd.sh,nrd.xp]
-t, --token <TOKEN> recommended: The CloudFlare API token to authenticate with deprecated: The CloudFlare
API key to authenticate with, also requires email [env: CLOUDFLARE_APITOKEN]
-k, --key <KEY> deprecated: The CloudFlare email to authenticate with, also requires API key [env:
CLOUDFLARE_APIKEY]
-e, --email <EMAIL> [env: CLOUDFLARE_EMAIL=]
-v, --verbose... More output per occurrence
-q, --quiet... Less output per occurrence
-h, --help Print help
-V, --version Print version
```
### installing as systemd service
Expand All @@ -43,36 +43,3 @@ test-cfdyndns.mickens.us (1.2.3.4 -> 72.209.157.122)...
### uninstalling systemd service
1. `make uninstall-systemd`

### example systemd journalctl log

```
Sep 20 15:36:40 chimera systemd[1]: Started Cloudflare-dyndns.
Sep 20 15:36:43 chimera cloudflare-dyndns[22760]: *.mickens.tv (74.125.186.11 -> 66.235.2.123)... done
Sep 20 15:36:44 chimera cloudflare-dyndns[22760]: mickens.tv (74.125.186.11 -> 66.235.2.123)... done
Sep 20 15:36:44 chimera cloudflare-dyndns[22760]: *.mickens.xxx (74.125.186.11 -> 66.235.2.123)... done
Sep 20 15:36:46 chimera cloudflare-dyndns[22760]: mickens.xxx (74.125.186.11 -> 66.235.2.123)... done
Sep 20 15:36:46 chimera cloudflare-dyndns[22760]: cole.mickens.us (74.125.186.11 -> 66.235.2.123)... done
Sep 20 15:36:46 chimera cloudflare-dyndns[22760]: *.mickens.us (74.125.186.11 -> 66.235.2.123)... done
Sep 20 15:36:47 chimera cloudflare-dyndns[22760]: mickens.us (74.125.186.11 -> 66.235.2.123)... done
Sep 20 15:36:47 chimera cloudflare-dyndns[22760]: *.mickens.me (74.125.186.11 -> 66.235.2.123)... done
Sep 20 15:36:48 chimera cloudflare-dyndns[22760]: mickens.me (74.125.186.11 -> 66.235.2.123)... done
Sep 20 15:36:48 chimera cloudflare-dyndns[22760]: recessionomics.us (74.125.186.11 -> 66.235.2.123)... done
Sep 20 15:36:49 chimera cloudflare-dyndns[22760]: www.recessionomics.us (74.125.186.11 -> 66.235.2.123)... done
Sep 20 15:36:49 chimera cloudflare-dyndns[22760]: *.mickens.io (74.125.186.11 -> 66.235.2.123)... done
Sep 20 15:36:49 chimera cloudflare-dyndns[22760]: mickens.io (74.125.186.11 -> 66.235.2.123)... done
Sep 20 15:41:45 chimera systemd[1]: Started Cloudflare-dyndns.
Sep 20 15:41:45 chimera cloudflare-dyndns[23288]: recessionomics.us skipped, up to date
Sep 20 15:41:45 chimera cloudflare-dyndns[23288]: www.recessionomics.us skipped, up to date
Sep 20 15:41:45 chimera cloudflare-dyndns[23288]: *.mickens.tv skipped, up to date
Sep 20 15:41:45 chimera cloudflare-dyndns[23288]: mickens.tv skipped, up to date
Sep 20 15:41:45 chimera cloudflare-dyndns[23288]: *.mickens.io skipped, up to date
Sep 20 15:41:45 chimera cloudflare-dyndns[23288]: mickens.io skipped, up to date
Sep 20 15:41:46 chimera cloudflare-dyndns[23288]: cole.mickens.us skipped, up to date
Sep 20 15:41:46 chimera cloudflare-dyndns[23288]: *.mickens.us skipped, up to date
Sep 20 15:41:46 chimera cloudflare-dyndns[23288]: mickens.us skipped, up to date
Sep 20 15:41:46 chimera cloudflare-dyndns[23288]: *.mickens.xxx skipped, up to date
Sep 20 15:41:46 chimera cloudflare-dyndns[23288]: mickens.xxx skipped, up to date
Sep 20 15:41:46 chimera cloudflare-dyndns[23288]: *.mickens.me skipped, up to date
Sep 20 15:41:46 chimera cloudflare-dyndns[23288]: mickens.me skipped, up to date
```

0 comments on commit 56c8d3b

Please sign in to comment.