[SOLVED] DDNS Broken (Inadyn) - Trendnet TEW-812DRUv2

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2  Next
Author Message
klinebau
DD-WRT Novice


Joined: 10 Apr 2023
Posts: 16

PostPosted: Wed Apr 12, 2023 13:23    Post subject: [SOLVED] DDNS Broken (Inadyn) - Trendnet TEW-812DRUv2 Reply with quote
I am attempting to use DDNS and not having any success for any provider. I am using a Trendnet router TEW-812DRUv2 and am on r52242 mini. No one else is reporting this type of issue, so it must be problem with my equipment/configuration, but don't know how to resolve.

The problem seems to have occurred after inadyn was refreshed to v2.10 and I have tried several releases in between. What happens is that no log output is generated at all after the configuration for any provider is saved. Initially I was using dnsomatic with the custom provider, but changed it to the dnsomatic provider that became available with the new release. After experimenting, this seems to happen with all providers so I do not believe it is a problem with the inadyn.conf file. I can see that ddns.log gets created in /tmp/ddns, but it is zero bytes. Stopping the service and running the command manually produces the same results. No other files are created.

Below is the contents of my inadyn.conf file, but I do not believe this is the source of the problem as stated above.

Code:
period = 600
forced-update = 864000
provider default@dnsomatic.com {
username = "username@something.com"
password = "notarealpassword"
hostname = {"all.dnsomatic.com"}
checkip-command = "/sbin/service checkwanip main"
}


This is the command line for the process running on the router:
Code:
inadyn --cache-dir=/tmp/ddns -e ddns_success --exec-mode=compat -f /tmp/ddns/inadyn.conf -P /var/run/inadyn.pid -l notice -C


Last edited by klinebau on Wed Apr 26, 2023 21:59; edited 2 times in total
Sponsor
klinebau
DD-WRT Novice


Joined: 10 Apr 2023
Posts: 16

PostPosted: Thu Apr 13, 2023 13:03    Post subject: Reply with quote
DDNS is broken in my configuration and I am thinking that perhaps this is a problem for the "mini" builds. I haven't seen anyone else mention that DDNS is working properly with a mini build since the new version of inadyn.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12915
Location: Netherlands

PostPosted: Thu Apr 13, 2023 15:13    Post subject: Reply with quote
Try with another DDNS provider e.g. freeDNS or noip.

It is certainly possible it is broken on your build but as far as I can tell you are on K4.4 so I would first rule out wrong settings.

Unfortunately you cannot set more verbose logging the very simple patch to add this was not accepted Sad

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
klinebau
DD-WRT Novice


Joined: 10 Apr 2023
Posts: 16

PostPosted: Thu Apr 13, 2023 15:30    Post subject: Reply with quote
I have tried other providers and the same behavior occurs. What is strange is that no log messages are generated under any circumstance (zero-byte ddns.log file). When running the inadyn command manually, the only output I can get is with the -v or -h options.
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Fri Apr 14, 2023 17:44    Post subject: Reply with quote
klinebau wrote:
I have tried other providers and the same behavior occurs. What is strange is that no log messages are generated under any circumstance (zero-byte ddns.log file). When running the inadyn command manually, the only output I can get is with the -v or -h options.

In case you didn't, enable system log in:

1. Services -> Services -> System Log
2. Security -> Log Management

Not sure whether Setup->DDNS (Inadyn) is using verbose logging to system log... Smile

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14244
Location: Texas, USA

PostPosted: Fri Apr 14, 2023 18:00    Post subject: Reply with quote
mwchang wrote:
Not sure whether Setup->DDNS (Inadyn) is using verbose logging to system log... Smile

egc wrote:
Unfortunately you cannot set more verbose logging the very simple patch to add this was not accepted Sad

The question in my mind remains, what are the configuration details in the webUI and how do they compare to what the DDNS provider require? Something seems missing from this tall tale. Also, to note, ~1-1.5MB of firmware image size decrease over time, and no idea why the firmware image is considered "mini" vs. "std" or "mega"...

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
klinebau
DD-WRT Novice


Joined: 10 Apr 2023
Posts: 16

PostPosted: Sat Apr 15, 2023 16:15    Post subject: Reply with quote
Attached is the UI that corresponds to the inadyn.conf file listed above. Note that the service status field is empty-- I should be getting some message even if the there is a problem with the provider configuration. That said, I know that these settings work with dnsomatic because I am running inadyn on my pi as a workaround. The only difference is that I am using the external ip check for that configuration.


Screenshot 2023-04-15 120937.png
 Description:
 Filesize:  26.33 KB
 Viewed:  1215 Time(s)

Screenshot 2023-04-15 120937.png


egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12915
Location: Netherlands

PostPosted: Sat Apr 15, 2023 16:38    Post subject: Reply with quote
It is easy to get more logging first kill the process e.g:
killall inadyn

Then start it again with:
inadyn --cache-dir=/tmp/ddns -e ddns_success --exec-mode=compat -f /tmp/ddns/inadyn.conf -P /var/run/inadyn.pid -l debug -C

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1952

PostPosted: Sat Apr 15, 2023 16:46    Post subject: Reply with quote
Could it be that overriding the plugin defaults is causing your problems?

https://github.com/mirror/dd-wrt/blob/master/src/router/inadynv2/plugins/dyndns.c#L55

Code:
static ddns_system_t dnsomatic = {
   .name         = "default@dnsomatic.com",

   .request      = (req_fn_t)request,
   .response     = (rsp_fn_t)response,

   .checkip_name = "myip.dnsomatic.com",
   .checkip_url  = "/",

   .server_name  = "updates.dnsomatic.com",
   .server_url   = "/nic/update"
};

_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
klinebau
DD-WRT Novice


Joined: 10 Apr 2023
Posts: 16

PostPosted: Sat Apr 15, 2023 20:37    Post subject: Reply with quote
egc wrote:
It is easy to get more logging first kill the process e.g:
killall inadyn

Then start it again with:
inadyn --cache-dir=/tmp/ddns -e ddns_success --exec-mode=compat -f /tmp/ddns/inadyn.conf -P /var/run/inadyn.pid -l debug -C


I think I mentioned in first post that I have tried executing the command manually (after killing or stopping service). I can set the log level (-l flag) to any value such as info, notice or debug. The process simply will not write any log messages to the ddns.log file.
klinebau
DD-WRT Novice


Joined: 10 Apr 2023
Posts: 16

PostPosted: Sat Apr 15, 2023 20:45    Post subject: Reply with quote
dale_gribble39 wrote:
Could it be that overriding the plugin defaults is causing your problems?



None of these values have been overriden:

.name - not entered from GUI (value in ddns.conf file is using this default)_
.request - not referenced in GUI or ddns.conf file
.response - not referenced in GUI or ddns.conf file
.checkip_name - only used for external IP check (currently set to no in GUI)
.checkip_url - only used for external IP check (currently set to no in GUI)
.server_name - not referenced from GUI (used by inadyn to update dnsomatic provider)
.server_url - not referenced from GUI (used by inadyn to update dnsomatic provider)
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1952

PostPosted: Sun Apr 16, 2023 2:44    Post subject: Reply with quote
Then the only possibility for failure is that it is not using SSL for authentication as it should:

https://forum.dd-wrt.com/wiki/index.php/Dynamic_DNS#DNS-O-Matic (not exactly updated)

https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=23863&start=90

https://www.dnsomatic.com/docs/dd-wrt (not updated)

https://wiki.dd-wrt.com/wiki/index.php/OpenDNS

_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
klinebau
DD-WRT Novice


Joined: 10 Apr 2023
Posts: 16

PostPosted: Sun Apr 16, 2023 3:06    Post subject: Reply with quote
The documentation for dnsomatic is out of date and the custom provider is no longer used. DNS-O-MATIC now has its own drop-down entry. This changed with the inclusion of inadyn 2.10 into dd-wrt.

None of the providers are working in my build and none produce any log message at all. I believe the problem to be with the inadyn binary file or with one of its dependencies.
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1952

PostPosted: Sun Apr 16, 2023 3:32    Post subject: Reply with quote
klinebau wrote:
The documentation for dnsomatic is out of date and the custom provider is no longer used. DNS-O-MATIC now has its own drop-down entry. This changed with the inclusion of inadyn 2.10 into dd-wrt.

Thanks for the highly unnecessary history lesson <lol> But, in the past, using port 443 (SSL) was / wasn't required for authentication, which is quite possibly still valid (or not) as per my previous comment. <eyeroll>

klinebau wrote:
None of the providers are working in my build and none produce any log message at all. I believe the problem to be with the inadyn binary file or with one of its dependencies.

Quite possible. Don't know if the firmware image size decrease is due to development changes to reduce code size or a bad build.
kernel-panic69 wrote:
Also, to note, ~1-1.5MB of firmware image size decrease over time, and no idea why the firmware image is considered "mini" vs. "std" or "mega"...


I would suggest upgrading to current release, simply based on firmware image size differences and the possibility that the problem is already resolved:

https://ftp.dd-wrt.com/dd-wrtv2/downloads/betas/2023/04-14-2023-r52330/trendnet-812DRUv2/

Code:
trendnet-812dru-webflash.bin                       14-Apr-2023 12:15             6610964
trendnet-812dru-webflash.bin                       08-Apr-2023 02:56             6606868

_________________
"The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep." - Robert Frost

"I am one of the noticeable ones - notice me" - Dale Frances McKenzie Bozzio

<fact>code knows no gender</fact>

This is me, knowing I've ruffled your feathers, and not giving a ****
Some people are still hard-headed.

--------------------------------------
Mac Pro (Mid 2012) - Two 2.4GHz 6-Core Intel Xeon E5645 processors 64GB 1333MHz DDR3 ECC SDRAM OpenSUSE Leap 15.5
klinebau
DD-WRT Novice


Joined: 10 Apr 2023
Posts: 16

PostPosted: Sun Apr 16, 2023 13:07    Post subject: Reply with quote
dale_gribble39 wrote:
klinebau wrote:
The documentation for dnsomatic is out of date and the custom provider is no longer used. DNS-O-MATIC now has its own drop-down entry. This changed with the inclusion of inadyn 2.10 into dd-wrt.

Thanks for the highly unnecessary history lesson <lol> But, in the past, using port 443 (SSL) was / wasn't required for authentication, which is quite possibly still valid (or not) as per my previous comment. <eyeroll>


Not unnecessary because using the custom provider for dnsomatic in the old configuration allowed you to configure using SSL or unencrypted and I agree that it was important to use the correct port. However, with dnsomatic built into the new version, inadyn handles it natively.

This is still not working in my build for r52330.
Goto page 1, 2  Next Display posts from previous:    Page 1 of 2
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum