mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-02 10:38:41 -04:00
Bug: LuaDNS provider ignores "host" config value and always updates the first "A" or "AAAA" in the zone #147
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lymanepp on GitHub (Sep 30, 2021).
Originally assigned to: @qdm12 on GitHub.
LuaDNS provider ignores "host" config value and always updates the first "A" or "AAAA" in the zone
Running version latest built on 2021-09-12T01:15:32Z (commit 01f4044)Here are the LuaDNS "A" records in the zone after updating. You can see that only the first "A" record in the https://api.luadns.com/v1/zones/{zone_id}/records response is updated.

The following lines in the getRecord method only match the record type and ignore the host.
Here's a trimmed copy of the https://api.luadns.com/v1/zones/{zone_id}/records response before running ddns-updater.
Logs:
Configuration file (remove your credentials!):
Host OS: QNAP QTS 4.5.4
@lymanepp commented on GitHub (Oct 1, 2021):
I created pull request https://github.com/qdm12/ddns-updater/pull/249 with a proposed fix.
@qdm12 commented on GitHub (Oct 2, 2021):
Hey @lymanepp thank you for the detailed issue and digging in there to fix it yourself 💯
And also sorry for the delay answering, I was a bit swamped with work recently. I wrote a comment on your PR to test the container with your changes 😉
@lymanepp commented on GitHub (Oct 5, 2021):
Hey @qdm12, the PR has been updated and is ready to be merged.
@qdm12 commented on GitHub (Oct 6, 2021):
Merged thanks for the contribution!! 🏅