Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Update multiple domains #79

Open
StevePearson-AIT opened this issue Oct 6, 2021 · 8 comments
Open

Update multiple domains #79

StevePearson-AIT opened this issue Oct 6, 2021 · 8 comments

Comments

@StevePearson-AIT
Copy link

I'm currently using the following docker-compose to start this container:
cf-ddns:
container_name: cf-ddns
image: oznu/cloudflare-ddns:latest
environment:
- PUID=${PUID}
- PGID=${PGID}
- TZ=${TIME_ZONE}
- API_KEY=${CLOUDFLARE_API_TOKEN}
- ZONE=${DOMAINNAME}
- PROXIED=true
restart: always

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
Copy link

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

@mediacowboy
Copy link

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

@kdpuvvadi
Copy link

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

@StevePearson-AIT
Copy link
Author

@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
Copy link

@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
Copy link
Author

@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
Copy link

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

@ikkerus
Copy link

ikkerus commented Feb 4, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants