OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: NetGobbler on February 16, 2022, 05:11:05 AM

Title: New 22. series dynamic dns - is this working for others? Where is log file?
Post by: NetGobbler on February 16, 2022, 05:11:05 AM
I thought I would be good and not install the old depreciated plugin as my dyndns provider is one of the list of providers, which is included in the new official plugin built in to the OS.

However I found out, painfully yesterday, it's not actually working.

Anyone know where the log file is for this so I can look up the problem?
Title: Re: New 22. series dynamic dns - is this working for others? Where is log file?
Post by: slackadelic on February 16, 2022, 08:21:54 AM
Well, if you mean os-ddclient, the log files should be right there within the same context menu:

Services -> Dynamic DNS ->Log File


Then at the top you can select a severity to view for troubleshooting.
Title: Re: New 22. series dynamic dns - is this working for others? Where is log file?
Post by: carl76 on February 16, 2022, 07:15:37 PM
I was wondering about this as well.  I just removed the legacy dynamic dns plugin and installed the new one now that cloudflare was included.  I have it configured (both in general settings and under the cloudflare config) to get the IP address from my WAN interface.  Under the logs I see the following warning:

ddclient[49321]   56394 - [meta sequenceId="1"] WARNING: file /var/tmp/ddclient.cache, line 3: Invalid Value for keyword 'ip' = ''

Prior to that I do see the following though (bottom being the oldest and top being the most recent:

2022-02-16T10:40:44-05:00   Notice   ddclient[49321]   53971 - [meta sequenceId="5"] WARNING: Wait at least 5 minutes between update attempts.
ddclient[49321]   53971 - [meta sequenceId="4"] WARNING: last updated <never> but last attempt on Wed Feb 16 10:39:47 2022 failed.
ddclient[49321]   53971 - [meta sequenceId="3"] WARNING: skipping update of (mydomainname) from <nothing> to (mypublicIPredacted).

I'm unsure if it's actually working or if it's just waiting for the public IP to actually change.

Update:
I may have fixed it.  Looks like the version of ddclient only supports using the global API key and not a created API token specifically setup for updating DNS.  Looks like a known "issue".
https://github.com/ddclient/ddclient/issues/361
Title: Re: New 22. series dynamic dns - is this working for others? Where is log file?
Post by: NetGobbler on February 17, 2022, 08:59:25 AM
Quote from: Dominian on February 16, 2022, 08:21:54 AM
Well, if you mean os-ddclient, the log files should be right there within the same context menu:

Services -> Dynamic DNS ->Log File


Then at the top you can select a severity to view for troubleshooting.


Well that's interesting..........

7268 - [meta sequenceId="2"] FAILED: updating XXXXXXXXXXX.dyndns.org: nohost: The hostname specified does not exist in the database


What? My TrueNAS machine is not having any problems registering it for me, (thank goodness)
Title: Re: New 22. series dynamic dns - is this working for others? Where is log file?
Post by: NetGobbler on February 17, 2022, 09:02:04 AM
It seems a malformed greek looking character (that I could definitely, never have typed) somehow got in to the settings, I've re-entered the full hostname, all fixed.