alphabt / asuswrt-merlin-ddns-cloudflare

CloudFlare DDNS update script for Asuswrt-Merlin
76 stars 23 forks source link

Allow multiple DNS Record Names to be updated #8

Open samkatakouzinos opened 4 years ago

samkatakouzinos commented 4 years ago

With this ddns-start script I know I can configure one DNS Record Name to work correctly.

I have a few domains at Cloudflare that I point at my router. I run a nginx server configured with the domains on the router and it handles the domains.

How may I be able to configure multiple DNS Record Names to work correctly? For example, domainone.org, domaintwo.com, domainthree.net all point to my router and I would like this script to accommodate them. Currently only one domainone.org can update automatically.

Any advice is appreciated.

alphabt commented 4 years ago

That's a great scenario but unfortunately the current script doesn't support it. PR is welcome to add that functionality though!

LandazuriPaul commented 3 years ago

@samkatakouzinos Have you tried using CNAME records?

I would just avoid having a CNAME record for a top-level domain since it can conflict with other non A records (MX, TXT, etc.). But I reckon you could easily have a CNAME record for at least one subdomain of each of your top-level domains pointing at the subdomain you're currently updating with this repo's script and then handle local redirections between your different subdomains.

I hope my above explanation makes sense, but if you'd like some more in-depth details, don't hesitate. :)