oznu / docker-cloudflare-ddns

A small amd64/ARM/ARM64 Docker image that allows you to use CloudFlare as a DDNS / DynDNS Provider.
https://hub.docker.com/r/oznu/cloudflare-ddns/
GNU General Public License v3.0
1.07k stars 213 forks source link

Usage with several subdomains #53

Closed Manuel5cc closed 3 years ago

Manuel5cc commented 3 years ago

I have tried using it with several subdomain, adding the "SUBDOMAIN" environment variable for each one, but it does only update one of them. Is this even a possibility? is it planned? if not I strongly suggest it.

Phyremaster commented 3 years ago

While running multiple containers is a solution, I too would like this feature for the sake of optimization. Additionally, if this feature is added, I would request that it be possible to set the root domain in addition to multiple subdomains, and perhaps even specify whether or not to use Cloudflare's proxy for each subdomain. If this is too complicated to do with environment variables, I would suggest a mountable configuration file.

timmillwood commented 3 years ago

I have a single domain I update, then cname all others to that.

oznu commented 3 years ago

I have a single domain I update, then cname all others to that.

This is the correct way to do multiple domains.

https://www.cloudflare.com/en-au/learning/dns/dns-records/dns-cname-record/

https://community.cloudflare.com/t/how-do-i-add-a-cname-record/59