plugins icon indicating copy to clipboard operation
plugins copied to clipboard

os-ddclient: No option for "on-root-domain=yes" setting makes updates fail (Invalid Domain)

Open Stitch10925 opened this issue 6 months ago • 6 comments

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

  1. Set a root domain as host to update
  2. Change the IP address
  3. Trigger an IP renewal by restarting the service
  4. 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

Stitch10925 avatar Jun 19 '25 22:06 Stitch10925

I am also impacted by this limitation.

EDIT: removed information pertaining to future version of ddclient

TinfoilSubmarine avatar Jul 09 '25 14:07 TinfoilSubmarine

Exact same issue with the same Provider. Any workarounds?

Moe1369 avatar Jul 25 '25 16:07 Moe1369

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 avatar Oct 08 '25 21:10 Stitch10925

@Stitch10925 Can you offer a PR for this? Adding a single flag shouldnt be too hard.

Monviech avatar Oct 09 '25 06:10 Monviech

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).

AdSchellevis avatar Oct 09 '25 07:10 AdSchellevis

@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!

Stitch10925 avatar Dec 01 '25 20:12 Stitch10925

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.

OPNsense-bot avatar Dec 16 '25 22:12 OPNsense-bot

"Not planned" ... well, that's a bummer, especially since there are no alternatives at the moment.

Stitch10925 avatar Dec 17 '25 08:12 Stitch10925