Skip to content

fix: SetRecords replaces rrset values instead of appending#17

Open
zazabe wants to merge 1 commit into
libdns:masterfrom
zazabe:fix-duplicated-records
Open

fix: SetRecords replaces rrset values instead of appending#17
zazabe wants to merge 1 commit into
libdns:masterfrom
zazabe:fix-duplicated-records

Conversation

@zazabe

@zazabe zazabe commented Jun 1, 2026

Copy link
Copy Markdown

Split LiveDNS update logic: SetRecords now PUTs a single-value rrset (fixes duplicate A records when an IP changes, e.g. with caddy-dynamicdns). AppendRecords still merges into an existing rrset.

Adds table-driven mock API tests for set vs append (www, @, new rrset, duplicate value).

related to caddy-dns/gandi#15

Update README to reflect new behavior of AppendRecords and SetRecords.
@zazabe zazabe marked this pull request as draft June 1, 2026 11:20
@zazabe zazabe marked this pull request as ready for review June 1, 2026 11:52
@zazabe

zazabe commented Jun 1, 2026

Copy link
Copy Markdown
Author

Works with caddy-dynamicdns, not sure about potential side effects for libdns/gandi usages in other caddy modules.

@zazabe

zazabe commented Jun 1, 2026

Copy link
Copy Markdown
Author

could fix #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant