ddns-updater
ddns-updater copied to clipboard
Feature request: update N of M A/AAAA records
-
What's the feature? Support multiple A records for the same hosts
-
Extra information? For example: one that is doing the DDNS as normal which works perfectly fine and another A records for the same hosts to have the option to get DDNS from another locations or to set it manually as static IP address
Currently, when you have a host set to talk to Cloudflare It will rewrite whenever it gets the IP (Which is expected from the current setup) However, I have this setup that requires the subdomain to have (A) DNS records
A >> 1.1.1.1 A >> 192.168.1.15
Example screenshots (Sometimes it works like this)
That sometimes works actually with the current setup, however, sometimes it writes both with the new DDNS if got detected with changes.
Thanks.
Thinking about this a bit...
- Check updates.json for the last IP for this domain+host+ip version
- Last IP not found: update all records (not one at random, to be consistent). This happens on a fresh start with no persisted data.
- Last IP found: find records containing the last IP
- At least one record found: update all matching records
- Record not found: update all records (not one at random, to be consistent)
That should do the trick right?
Or would you like to be able to specify i.e. record ids?
Although ideally I would like to extend this to all providers 😉