Sign inSign up

lambdalisue/cloudflare-ddns

By lambdalisue

Updated over 6 years ago

Alpine image to update DNS A record in cloudflare periodically

Image
0

577

lambdalisue/cloudflare-ddns repository overview

cloudflare-ddns

A docker image to periodically update DNS A record on CloudFlare DNS Service.

Usage

docker run \
    -e API_KEY=xxxxxx \
    -e ZONE=example.com \
    -e SUBDOMAIN=subdomain \
    -e SCHEDULE="* * * * *" \
    lambdalisue/cloudflare-ddns

Environment variables

NameDescription
API_KEYYour CloudFlare scoped API token. Required
ZONEThe DNS zone that DDNS update should be applied to. Required
SUBDOMAINA subdomain of the ZONE to write DNS changes to. If this is not supplied the root zone will be used.
SCHEDULEA cron schedule expression (e.g. * * * * *) to execute DDNS updates

Differences

  • DNS record creation is not supported
  • AAAA record (IPv6) is not supported
  • Pulling IPs from iface is not supported

Thanks

Originally the idea comes from https://gist.github.com/Tras2/cba88201b17d765ec065ccbedfb16d9a. And then I found https://github.com/oznu/docker-cloudflare-ddns but that's a bit too complicated for my case so manually forked to make simplified version.

Tag summary

Content type

Image

Digest

Size

8.6 MB

Last updated

over 6 years ago

docker pull lambdalisue/cloudflare-ddns