<commit_before># CloudFlare Dynamic DNS Updater

This is an extremely simple tool to update CloudFlare dynamic DNS entries. It's
sole purpose is to periodically query the external IP address of the machine it
is running on, and modify the DNS entry accordingly. Opposed to a few scripts
out there that do a one shot update requiring regular cron sheduling, this one
is more aimed to environments where you can configure it as a service and leave
the updater running in the background.

## Installation and usage

The tool in written in Go and follows the usual installation method:

```
$ go get github.com/karalabe/cloudflare-dyndns
```

```
$ cloudflare-dyndns --help

Usage of cloudflare-dyndns:
  -domains string
      Comma separated domain list to update
  -key string
      CloudFlare authorization token
  -ttl int
      Domain time to live value (default 120)
  -update duration
      Time interval to run the updater (default 1m0s)
  -user string
      CloudFlare username to update with
```

## Running from Docker

The CloudFlare updater is available as a Docker container too in the form of a
Docker Hub automated build. To use it, simply pull the images and start with the
same flags you would use for the standalone version.

```
$ docker pull karalabe/cloudflare-dyndns
$ docker run --restart=always karalabe/cloudflare-dyndns [...]
```

Above we've also set a restart policy to always start up the DNS updates even in
the face of complete machine reboots.<commit_msg>Start docker in daemon mode<commit_after># CloudFlare Dynamic DNS Updater

This is an extremely simple tool to update CloudFlare dynamic DNS entries. It's
sole purpose is to periodically query the external IP address of the machine it
is running on, and modify the DNS entry accordingly. Opposed to a few scripts
out there that do a one shot update requiring regular cron sheduling, this one
is more aimed to environments where you can configure it as a service and leave
the updater running in the background.

## Installation and usage

The tool in written in Go and follows the usual installation method:

```
$ go get github.com/karalabe/cloudflare-dyndns
```

```
$ cloudflare-dyndns --help

Usage of cloudflare-dyndns:
  -domains string
      Comma separated domain list to update
  -key string
      CloudFlare authorization token
  -ttl int
      Domain time to live value (default 120)
  -update duration
      Time interval to run the updater (default 1m0s)
  -user string
      CloudFlare username to update with
```

## Running from Docker

The CloudFlare updater is available as a Docker container too in the form of a
Docker Hub automated build. To use it, simply pull the images and start with the
same flags you would use for the standalone version.

```
$ docker pull karalabe/cloudflare-dyndns
$ docker run -d --restart=always karalabe/cloudflare-dyndns [...]
```

Above we've also set a restart policy to always start up the DNS updates even in
the face of complete machine reboots.
{'fraction_non_alphanumeric': 0.048576214405360134, 'fraction_numerical': 0.0033500837520938024, 'mean_word_length': 3.8552845528455286, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3762581', 'n_tokens_mistral': 844, 'n_tokens_neox': 772, 'n_words': 432}