OPNsense Forum

English Forums => 25.7 Series => Topic started by: sammy on July 23, 2025, 03:32:02 PM

Title: Dynamic DNS stopped updating
Post by: sammy on July 23, 2025, 03:32:02 PM
After upgrading to 25.7, Namecheap Dynamic DNS stopped updating. I've checked and reapplied the configuration, but the issue persists. Any ideas or suggestions?
Title: Re: Dynamic DNS stopped updating
Post by: Animosity on July 23, 2025, 03:40:03 PM
I think it's just visual and not displaying on the screen.

When I check the logs flipping over to informational, I can see logs of things updating even though the GUI is blank.
Title: Re: Dynamic DNS stopped updating
Post by: Monviech (Cedrik) on July 23, 2025, 03:44:00 PM
What is not displayed? I just checked the plugin and my configuration items show in the grid, e.g. duckdns.

Please screenshot if possible.
Title: Re: Dynamic DNS stopped updating
Post by: sammy on July 23, 2025, 03:49:43 PM
here is the screen capture
Title: Re: Dynamic DNS stopped updating
Post by: Animosity on July 23, 2025, 04:02:25 PM
That's the same for me in the dashboard widget and the services location screenshot.

From the logs, I can see IPs being updated and such without an issue.
Title: Re: Dynamic DNS stopped updating
Post by: meyergru on July 23, 2025, 04:07:46 PM
Yes, the widgets are broken, yet the updates are done correctly - I can verify that the IPs update and I see log entries. Please open up a Github issue.
Title: Re: Dynamic DNS stopped updating
Post by: sammy on July 23, 2025, 04:08:07 PM
The service log appears blank on my end, there's no sign of any updates taking place.
Title: Re: Dynamic DNS stopped updating
Post by: Javier® on July 23, 2025, 04:12:43 PM
Hi, I have the same problem
Title: Re: Dynamic DNS stopped updating
Post by: franco on July 23, 2025, 04:26:57 PM
Cedrik--Snake case conversion problem?


Cheers,
Franco
Title: Re: Dynamic DNS stopped updating
Post by: Monviech (Cedrik) on July 23, 2025, 04:27:11 PM
I just checked the API response and "current_mtime" and "current_ip" is missing from it.

Thats why it falls back to "N/A" right now as defined here:

https://github.com/opnsense/plugins/blob/b472a1d4e2f447100880dca966f21ec484b72691/dns/ddclient/src/opnsense/www/js/widgets/Dyndns.js#L98-L99

I don't know why yet but this looks like its only a visual bug right now.
Title: Re: Dynamic DNS stopped updating
Post by: steve08 on July 23, 2025, 04:44:01 PM
Broken for Cloudflare too.
Title: Re: Dynamic DNS stopped updating
Post by: Javier® on July 23, 2025, 04:47:28 PM
It's just a visual error, the ips are update, I also wanted to thank you for all the work, spectacular!!!
Title: Re: Dynamic DNS stopped updating
Post by: franco on July 23, 2025, 04:48:27 PM
Yeah, don't report for every DynDNS provider please. This is a framework issue with the visibility of the AccountField in the plugin. We'll figure it out.


Cheers,
Franco
Title: Re: Dynamic DNS stopped updating
Post by: muchacha_grande on July 23, 2025, 05:05:56 PM
In my box the IPs are missing from the widget and also from the plugin settings list.
Title: Re: Dynamic DNS stopped updating
Post by: ChrisChros on July 23, 2025, 08:27:01 PM
Quote from: muchacha_grande on July 23, 2025, 05:05:56 PMIn my box the IPs are missing from the widget and also from the plugin settings list.
I can confirm that the IP address isn't displayed in the widget or in the settings. The good news is that the IP is updated, so the plugin itself is working.
Title: Re: Dynamic DNS stopped updating
Post by: Monviech (Cedrik) on July 23, 2025, 08:36:07 PM
Well yes please read my earlier post.
Title: Re: Dynamic DNS stopped updating
Post by: franco on July 24, 2025, 08:42:47 AM
We isolated the cause and discussing possible fixes. At the moment virtual fields such as the current_* fields in models are ignored by the grid rendering which was not intended.


Cheers,
Franco
Title: Re: Dynamic DNS stopped updating
Post by: franco on July 24, 2025, 01:23:07 PM
# opnsense-patch https://github.com/opnsense/core/commit/61d289cb3f
Title: Re: Dynamic DNS stopped updating
Post by: staticznld on July 24, 2025, 01:32:43 PM
Looks like that is working!

Thanks.
Title: Re: Dynamic DNS stopped updating
Post by: Javier® on July 24, 2025, 03:10:56 PM
Hi, it works for me. Thanks.
Title: Re: Dynamic DNS stopped updating
Post by: sammy on July 24, 2025, 03:28:13 PM
thanks, the patch works!
Title: Re: Dynamic DNS stopped updating
Post by: akyfire on July 25, 2025, 12:42:24 AM
Brilliant, it's fixed two site's with the issue for me
Title: Re: Dynamic DNS stopped updating
Post by: Meg on July 25, 2025, 06:11:23 AM
The patch works great. Thanks.
Title: Re: Dynamic DNS stopped updating
Post by: rfox on July 25, 2025, 08:12:31 AM
Patch works great! But I noticed that when configured through the GUI - it doesn't work (using DynDNS) - have to configure the /usr/local/etc/ddclient.conf by hand - when using the GUI, it resets the manually made ddclient.conf and doesn't respect the settings made ?!?

Manually created - which works fine:
root@FoxOPN:/usr/local/etc # cat ddclient.conf
daemon=300
syslog=yes                  # log update msgs to syslog
pid=/var/run/ddclient.pid   # record PID in file.
ssl=yes

usev4=ifv4, ifv4=vtnet1, \
protocol=dyndns2, \
login=(redacted), \
password=(redacted)\
xxxx.homeip.net

After hitting "apply" in the GUI:

root@FoxOPN:/usr/local/etc # cat ddclient.conf
syslog=yes                  # log update msgs to syslog
pid=/var/run/ddclient.pid   # record PID in file.

Title: Re: Dynamic DNS stopped updating
Post by: franco on July 25, 2025, 09:27:05 AM
> when using the GUI, it resets the manually made ddclient.conf and doesn't respect the settings made ?!?

That's intentional.  You could always use ddclient without the plugin, but then also without a widget and other hooks into the system.

The middle ground is get your missing features into the plugin.


Cheers,
Franco
Title: Re: Dynamic DNS stopped updating
Post by: rfox on July 25, 2025, 09:38:00 AM
Quote from: franco on July 25, 2025, 09:27:05 AM> when using the GUI, it resets the manually made ddclient.conf and doesn't respect the settings made ?!?

That's intentional.  You could always use ddclient without the plugin, but then also without a widget and other hooks into the system.

The middle ground is get your missing features into the plugin.


Cheers,
Franco

Thx Franco - I know it's intentional that the ddclient.conf file is overwritten from the GUI plugin - but don't think it's intentional that the GUI does not respect the settings made and NOT put them into the ddclient.conf - I have one entry under accounts - filled out correctly, but when I hit apply, it saves and overwrites the ddclient.conf file with only those two entries found above ?!?  So hitting apply breaks the config . . .
Title: Re: Dynamic DNS stopped updating
Post by: Monviech (Cedrik) on July 25, 2025, 09:39:44 AM
That is to be expected since each apply will generate the complete configuration file with the information found in the config.xml.
Title: Re: Dynamic DNS stopped updating
Post by: rfox on July 25, 2025, 11:59:17 AM
Quote from: Monviech (Cedrik) on July 25, 2025, 09:39:44 AMThat is to be expected since each apply will generate the complete configuration file with the information found in the config.xml.

Huh? Maybe I'm not explaining this correctly.  If I use the GUI under Dynamic DNS to create a DynDNS account configuration using native backend - and save it using apply, it doesn't work.  When I look at the resulting ddclient.conf I see only:

root@FoxOPN:/usr/local/etc # cat ddclient.conf
syslog=yes                  # log update msgs to syslog
pid=/var/run/ddclient.pid   # record PID in file.

Which doesn't show the items I placed in the GUI under accounts like login, password, ssl, etc.

Is the ddclient.conf being generated on the fly together with the config.xml settings?  I don't get it . . .



Title: Re: Dynamic DNS stopped updating
Post by: franco on July 25, 2025, 12:19:52 PM
The native backend doesn't use ddclient.conf nor ddclient itself. Look at /usr/local/etc/ddclient.json instead.

I know it's confusing. Maybe one day we will even remove the ddclient backend or split the plugins into two.


Cheers,
Franco
Title: Re: Dynamic DNS stopped updating
Post by: rfox on July 25, 2025, 12:52:56 PM
Quote from: franco on July 25, 2025, 12:19:52 PMThe native backend doesn't use ddclient.conf nor ddclient itself. Look at /usr/local/etc/ddclient.json instead.

I know it's confusing. Maybe one day we will even remove the ddclient backend or split the plugins into two.


Cheers,
Franco

Gotcha !  So when I choose "native" backend - it clears out the ddclient.conf - and doesn't work.

When I change backend back to ddclient - it seems to keep my ddclient.conf after hitting apply. Only thing is, I don't see it updating automatically (respecting the 300 second default interval) . . . shouldn't I see an update attempt every 5 minutes in the ddclient logs ??