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.08k stars 219 forks source link

Update multiple domains #79

Open StevePearson-AIT opened 3 years ago

StevePearson-AIT commented 3 years ago

I'm currently using the following docker-compose to start this container: cf-ddns: container_name: cf-ddns image: oznu/cloudflare-ddns:latest environment:

This works fine but I now need to add a second domain at the same time. This is not a sub domain, it's completely different. Is it possible to do this with the same container, or do I need to spin up a second instance to update the new domain? Thanks.

weirlive commented 2 years ago

Also wondering this, I added 2 -ZONE and it will just update the 2nd one.

mediacowboy commented 2 years ago

Also intrested in this as it would be perfect for updating my 10 domains.

kdpuvvadi commented 2 years ago

Better sollution would be launch another container for another record or zone.

StevePearson-AIT commented 2 years ago

@kdpuvvadi I'm not sure about that, while I know it's not a huge footprint eating loads of resources, a single instance doing all of your domains would be a much better and neater solution. In my case I am currently only using 2 domains, but others have a lot more domains to update, for example @mediacowboy has 10 domains, so would need to run 10 instances, which would be very messy!

kdpuvvadi commented 2 years ago

@kdpuvvadi I'm not sure about that, while I know it's not a huge footprint eating loads of resources, a single instance doing all of your domains would be a much better and neater solution. In my case I am currently only using 2 domains, but others have a lot more domains to update, for example @mediacowboy has 10 domains, so would need to run 10 instances, which would be very messy!

What I normally do is set one domain With Arecord and make all others cname to the first one. That's actually recommend to me by data centre engineers.

StevePearson-AIT commented 2 years ago

@kdpuvvadi yeah, I looked at doing exactly this, and initially it seemed ok, but I hit problems. I can't remember exactly what the issue was, something to do with oauth I think, but when I pointed the second domain's A-Record at the name of the first domain some things stopped working correctly.

mediacowboy commented 2 years ago

I ended up going with dd client as it allows you to updated multiple a records for multiple domains.

ikkerus commented 2 years ago

The fun part is, that this was working on unraid with SUB-Domains at a specific point of release. Now it only updates the latest subdomain (subdomain6). Never testet with another full domain.

image