ddns-updater icon indicating copy to clipboard operation
ddns-updater copied to clipboard

Feature request: update N of M A/AAAA records

Open redtripleAAA opened this issue 1 year ago • 1 comments

  1. What's the feature? Support multiple A records for the same hosts

  2. 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) Screen Shot 2022-07-07 at 9 18 59 PM

That sometimes works actually with the current setup, however, sometimes it writes both with the new DDNS if got detected with changes.

Thanks.

redtripleAAA avatar Jul 07 '22 21:07 redtripleAAA

Thinking about this a bit...

  1. Check updates.json for the last IP for this domain+host+ip version
    1. Last IP not found: update all records (not one at random, to be consistent). This happens on a fresh start with no persisted data.
    2. Last IP found: find records containing the last IP
      1. At least one record found: update all matching records
      2. 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 😉

qdm12 avatar Jan 19 '24 12:01 qdm12