Skip to content

dns/ddclient hetzner existing record update patch#5188

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

dns/ddclient hetzner existing record update patch#5188
jnikodemus wants to merge 5 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
Reference
pull#5082
issue#5187

Problem
The actual update method returns code 200 for an update, because it doesnt use the right entrypoint.

Fix
Changed the API entrypoint "actions" and removed code duplication.

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)

@jnikodemus
Copy link
Author

You are right, I've contacted the hoster again. I'll write it correct.

@jnikodemus jnikodemus closed this Feb 6, 2026
@jnikodemus jnikodemus reopened this Feb 6, 2026
Updated _update method. No workaround needed.
@jnikodemus jnikodemus changed the title ddclient hetzner existing record update workaround dns/ddclient hetzner existing record update patch Feb 6, 2026
fix: correct indentation of return statement in _update_record
@Ollienator
Copy link

I was just going to open a pull request for the same issue but then I found yours. Since you also removed some code duplication, your changes are ahead of mine (see 7bc1af4).

One thing I have noticed is that you are including the TTL parameter in your request. This should be removed as it's not used in the update_records action (see https://docs.hetzner.cloud/reference/cloud#tag/zone-rrset-actions/update_zone_rrset_records).

fix: removed ttl from _update_record as its not supported (thanks to Ollienator).
@jnikodemus
Copy link
Author

I was just going to open a pull request for the same issue but then I found yours. Since you also removed some code duplication, your changes are ahead of mine (see 7bc1af4).

One thing I have noticed is that you are including the TTL parameter in your request. This should be removed as it's not used in the update_records action (see https://docs.hetzner.cloud/reference/cloud#tag/zone-rrset-actions/update_zone_rrset_records).

Thank you, appreciate the hint. I've removed the ttl from the _update_record and tested again -> success.

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.

3 participants