Posted: Tue Jun 23, 2020 23:55 Post subject: Internet connection disrupted hourly when DDNS is enabled
Hello,
Please help me resolve the following issue:
I have Asus RT-N10U with DD-WRT v24-sp2 (03/25/13) mega installed. I have DDNS client enabled (Inadyn) in the router's settings, which constantly checks up for WAN IP changes and sends the new IP value to dynu.com. The DDNS client works flawlessly, no questions asked.
However, I have a very strange problem: when the DDNS client is enabled, my Internet connection gets disrupted hourly on the 31st minute of each hour (i.e. on 10:31, 11:31, 12:31 and so on). The disruptions take about 1 minute, then the connection restores and works normally for another hour. I have 2 lines in the DDNS client's log (the time changes hourly):
Code:
Tue Jun 23 10:30:59: INADYN: Started 'INADYN Advanced version 1.96-ADV' - dynamic DNS updater.
Tue Jun 23 10:30:59: INADYN: IP read from cache file is 'xxx.xxx.xxx.xxx'. No update required.
Please help to find the cause of these disruptions. I have no Cron jobs running on the 31st minute of the hour. My Inadyn settings (from /tmp/ddns/inadyn.conf) are as follows:
Joined: 08 May 2018 Posts: 14129 Location: Texas, USA
Posted: Wed Jun 24, 2020 1:00 Post subject:
It looks as if that is updating every 10 minutes by default, and forced update is still the same as it should be, but
you may wish to upgrade to a more recent release (without reset) and test. Not sure you can override the default
10-minute update interval via startup script, that would have to be something to look at as far as how to replace
that line during startup (I am no scripting genius). How often is your WAN IP dhcp release renewed? I don't think
that is involved, but this may also be related to NTP and all the other processes being monitored by the firmware.
I have not looked to see if anyone else has had this issue with such an old build.
I presume you are using the initial K2.6 mega build. I recommend at least upgrading to 35531 or 40723 for K2.6:
It looks as if that is updating every 10 minutes by default
Thank you for your reply. Honestly, I do not really think that my problem is related to the 10 minute update interval, I think that there must be some other reason.
You see, I thought I had a buggy version of Inadyn in my firmware, so instead of using the built-in DDNS client, I went with using a Cron job invoking Dynu.com's API directly using wget:
It works well and does update my IP record every 5 minutes as intended, but after it updated the IP for the first time (it happened on 15:50:06), all further updates made on the 51st minute of each next hour disrupt my internet connection as before
I am really lost here, can't figure out what is my problem.. Possibly Dynu.com sends something back on the 12th attempt to update the IP which makes my router freeze for a minute... Do you have any idea what can it be?
Also, in regard of installing a newer version of DD-WRT on my router: can you please look here (https://dd-wrt.com/support/router-database/?model=RT-N10U_-) - what is the newest and most recent firmware for my ASUS RT-N10U? I am a bit lost because there are so many different versions and releases - where can I find more information about their differences and features?
Joined: 08 May 2018 Posts: 14129 Location: Texas, USA
Posted: Wed Jun 24, 2020 2:47 Post subject:
I see you completely skipped reading this before looking up your router model on the outdated, unreliable router database:
Quote:
DISCLAIMER
This database may not have up-to-date information and may even recommend a build which might cause issues. As such, you should check the device specific forum (Broadcom, Atheros, MediaTek, etc.) first before flashing any build recommended in this database. There you will find build specific topics that discuss any issues with a particular build/release. For more up-to-date firmware files, please visit the firmware faq.
Also, you asked about your issue with that screenshot, you didn't say that you switched to using a cron job. That may be part of the problem, especially if both configurations are in place. _________________ "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
I see you completely skipped reading this before looking up your router model on the outdated, unreliable router database:
I mean I just do not understand the DD-WRT's versioning whatsover(K24 vs K26 vs K3 vs various builds, etc). Also, how come there are ~8MB firmwares for my router which has only 4MB of flash? Maybe you could just refer me to a user-friendly source or suggest the latest firmware version that won't brick my router? (BTW, this is why I am using DD-WRT v24-sp2 (03/25/13) mega - I believe this is the latest version which can be installed on Asus RT-N10U, am I correct?)
In regard of the Cron job - no, you got my wrong, I tried using either the built-in DDNS client or requesting the API directly using a Cron job. In both cases, I begin experiencing hourly disruptions each 1, 2, 3, 4 etc. hour after the very first update of the IP data I suspect the problem has something to do with the DDNS service provider (maybe some unusual API response which causes my router to hang for a minute)..
Joined: 08 May 2018 Posts: 14129 Location: Texas, USA
Posted: Wed Jun 24, 2020 9:16 Post subject:
Please read the references I linked earlier as well as the information linked in the router database. Also, look at your screenshot in your original post. You are running a mega version, which is for 8MB flash devices. Your RT-N10U is *not* a 4MB flash device. I gave you a path that shouldn't brick you, but there is *always* a chance of bricking with custom firmware and you should *always* have means of recovery, which Asus devices are probably some of the easier to recover routers out there. I do know that there have been patches to inadyn and the rest of the firmware since the version you have installed that may help fix your problems. I understand your concerns, but it's either deal with the connectivity issues or take the risk and upgrade.
Oh, thanks for pointing out RT-N10U is actually a 32MB RAM/8MB flash router, I referred to the router database which is apprently incorrect as you suggested (mistakenly stating that it has 16MB RAM and 4MB flash instead).
And it also looks like I am running a K24 firmware on my router which is not recommended. I will try to updated using the links you provided, thank you.
Joined: 08 May 2018 Posts: 14129 Location: Texas, USA
Posted: Wed Jun 24, 2020 10:28 Post subject:
Please ensure you have the RT-N10U, first. You stated that is what you have, so that is what I went by. What does it say on the main router status page? What does it say on the router's label on the case?
I will first try to use syslog to see if there are some visible errors appearing when the connection gets disrupted and then flash some newer firmware, if I won't be able to fix this issue without updating.
Joined: 08 May 2018 Posts: 14129 Location: Texas, USA
Posted: Wed Jun 24, 2020 10:48 Post subject:
I just double-checked the router database output for RT-N10U, and yes, the information is incorrect. I guess I need to look through all of the N10 variations and verify the information and pass it along to the site admins.
I just double-checked the router database output for RT-N10U, and yes, the information is incorrect. I guess I need to look through all of the N10 variations and verify the information and pass it along to the site admins.
Let us know in this topic if you run into any issues.