Tuan-Anh Tran
March 27, 2020

Dynamic DNS with CloudFlare

Posted on March 27, 2020  •  1 minutes  • 99 words

I use this project oznu/docker-cloudflare-dns1 where the author implements everything in bash, curl and jq. There were a bunch of projects that does this DDNS with CloudFlare but I chose this project because of this uniqueness.

To use this, you just have to create an API token with Cloudflare that has these permissions:

Also, set zone resources to All zones. And then, run the docker container

docker run -d \
    -e API_KEY=<cloudflare-token> \
    -e ZONE=<example.com> \
    -e SUBDOMAIN=<subdomain> \
    --restart=unless-stopped oznu/cloudflare-ddns

ddns cloudflare docker

  1. https://github.com/oznu/docker-cloudflare-ddns  ↩︎

Follow me

Here's where I hang out in social media