os-ddclient: No option for "on-root-domain=yes" setting makes updates fail (Invalid Domain)
Important notices Before you add a new report, we ask you kindly to acknowledge the following:
- [x] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
- [x] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
- [x] The title contains the plugin to which this issue belongs
Describe the bug When my IP address changes ddclient is unable to update my IP address and fails with:
FAILED: {"status":"ERROR","message":"Invalid domain."})
When I manually update the ddclient config and add the "on-root-domain=yes" option, the IP updates successfully. Unfortunately this configuration is overwritten when the system reboots, resulting again in the "Invalid domain" error.
To Reproduce
- Set a root domain as host to update
- Change the IP address
- Trigger an IP renewal by restarting the service
- Details:
- Domain registrar is Porkbun
- Plugin is set to use the ddclient
- Domain is a root domain
Expected behavior It would be nice to have a checkbox in the domain configuration page that allows you to set if the domain is a root domain or not, and that this option is then persisted and written to the ddclient config.
Environment OPNsense 25.1.9-amd64 FreeBSD 14.2-RELEASE-p3 OpenSSL 3.0.16 DDClient 1.27_3
I am also impacted by this limitation.
EDIT: removed information pertaining to future version of ddclient
Exact same issue with the same Provider. Any workarounds?
Can we add a flag for this already? I'm exhausted of having my services being unavailable and me having to change the ddclient config manually to add this parameter to get everything working again, every single time I update OpnSense, lose internet connection, or have a power failure.
@Stitch10925 Can you offer a PR for this? Adding a single flag shouldnt be too hard.
If someone does want to spend time on these, he/she likely better spend time investigating what it would need to build a native implementation. ddclient seems to be pretty dead (again).
@Monviech I wish I could, but I have no knowledge of PHP or Python (I believe that's what you're using).
If anyone else does, please fix this, it would be so helpful!
This issue has been automatically timed-out (after 180 days of inactivity).
For more information about the policies for this repository, please read https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md for further details.
If someone wants to step up and work on this issue, just let us know, so we can reopen the issue and assign an owner to it.
"Not planned" ... well, that's a bummer, especially since there are no alternatives at the moment.