Skip to content

ddclient hetzner existing record update workaround#5188

Open
jnikodemus wants to merge 2 commits intoopnsense:masterfrom
jnikodemus:jnikodemus-dd_hetzner_patch1
Open

ddclient hetzner existing record update workaround#5188
jnikodemus wants to merge 2 commits intoopnsense:masterfrom
jnikodemus:jnikodemus-dd_hetzner_patch1

Conversation

@jnikodemus
Copy link

@jnikodemus jnikodemus commented Feb 4, 2026

Fix ddclient update Hetzner for new API
Thanks to @ArcanConsulting who provided the workaround (updating an existing record by deleting and creating) in another project.

Reference
pull#5082
issue#5187

Problem
A bug in the new Hetzner API (api.hetzner.cloud) returns code 200 for an update, but doesnt write the change.

Fix
Delete record and create new one.

Testing
Tested on a local OPNsense instance with multiple records.

Added workaround for API bug on update record. Thanks to @ArcanConsulting
Added LOG_NOTICE for deletion.
@AdSchellevis
Copy link
Member

wouldn't it be better to open a ticket at their end, it feels rather weird to patch the caller in this case (assuming its a bug and not a documented change of behavior)

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants