Skip to content

GANDI_V5: BUGFIX: Uppercase labels fail to update#3582

Merged
tlimoncelli merged 2 commits intomainfrom
tlim_b3581
May 22, 2025
Merged

GANDI_V5: BUGFIX: Uppercase labels fail to update#3582
tlimoncelli merged 2 commits intomainfrom
tlim_b3581

Conversation

@tlimoncelli
Copy link
Copy Markdown
Contributor

@tlimoncelli tlimoncelli commented May 22, 2025

Fixes #3581

Issue

DNSControl attempts to lowercase all labels (See Opinion #4 in https://docs.dnscontrol.org/developer-info/opinions).

Sadly, the Gandi API has a bug (I consider it a bug) that to update the records at a particular label, the request must specify the label with the same case as what is stored at Gandi. In other words, the update API does not use a case-insensitive comparison when looking up the label being updated.

Resolution

Luckily we save the record as it came from the API in .Original. We can use that to specify the label that Gandi expects.

@tlimoncelli tlimoncelli changed the title GANDI: BUGFIX: Uppercase labels fail to update GANDI_V5: BUGFIX: Uppercase labels fail to update May 22, 2025
@tlimoncelli tlimoncelli merged commit cdbd540 into main May 22, 2025
22 checks passed
@tlimoncelli tlimoncelli deleted the tlim_b3581 branch May 22, 2025 15:09
AsifNawaz-cnic pushed a commit to centralnicgroup-opensource/rtldev-middleware-dnscontrol that referenced this pull request Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GANDI: dns records with uppercase characters aren't respected

2 participants