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

Update subdomain only #52

Closed mtompkins closed 3 years ago

mtompkins commented 3 years ago

It would be useful if an ability to only update a subdomain was made available. I didn't see any manner in which to not update the primary record/root domain.

ServusNL commented 3 years ago

Wait what? There is a "-e SUBDOMAIN" parameter right which does exactly that.

-e SUBDOMAIN - A subdomain of the ZONE to write DNS changes to. If this is not supplied the root zone will be used.

mtompkins commented 3 years ago

When I used that parameter the root was also updated.

ServusNL commented 3 years ago

I implemented it today and it works fine. Where the subdomain is: "subdomain.subdomain2" and the zone = "domain.nl". so the subdomain is without domain.nl. This works for me.

mtompkins commented 3 years ago

I used zone=acme.com subdomain=subdomain and both the subdomain A record and the zone A record were updated.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.