Question about DDNS Force Update Interval

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
dplettner
DD-WRT Novice


Joined: 15 Jul 2016
Posts: 20

PostPosted: Fri Sep 30, 2022 20:41    Post subject: Question about DDNS Force Update Interval Reply with quote
Hello,

I use the DDNS service of freedns.afraid.org, and it has worked well for me.

In June of this year, I replaced a Netgear R7000 with a R7800. In July, I left home for the rest of the summer and I took the R7000 with me to give to a relative. Without giving it much thought, I hooked up the R7000 at my relative's house before I had a chance to reset the configuration. The R7000 overwrote my DDNS record entry at freedns.afraid.org, and replaced my IP address with my relative's IP address. After that, I reset the configuration of the R7000.

I was gone for 2.5 months. The R7800 has the Force Update Interval set to the default value of 10 days, so I would have expected that my IP address would have been restored at freedns.afraid.org within 10 days, but it never was. I believe that the R7800 went no further than verifying that the actual IP address matched the cached IP address, and never updated the record at freedns.afraid.org. When I got back home a couple weeks ago, I went into the DDNS tab and looked at the settings, clicked Apply Settings, and the record was restored at freedns.afraid.org.

Is there a bug in the Force Update Interval function? It seems like Force Update Interval should attempt to update the DDNS record at the DDNS service every XX days (as specified in the Force Update Interval option) regardless of any cached values. Admittedly, this was a pretty unusual situation that is unlikely to repeat. I have certainly learned my lesson about resetting a router configuration before giving away a router.

Thanks!
Sponsor
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Fri Sep 30, 2022 21:39    Post subject: Reply with quote
If you remove the DDNS setup from the gift router and add it to your new router the IP will be set accordingly to your new router ISP IP.

DDNS works like this, no matter what IP your ISP gives it assigns it to the domain you registered with the respective DDNS service.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1899

PostPosted: Fri Sep 30, 2022 22:18    Post subject: Reply with quote
The new router's configuration was already changed; the old router's configuration hadn't had the DDNS config removed.

Is use external IP check enabled? Related open/closed tickets:

#7569 new DDNS not updating - Stops at IP read from cache even though it's different than the WAN address

#7564 closed (provide more info and reopen) DDNS not updating the IP address

#7465 closed (fixed) 47371 - DDNS gui does not work

#7238 new ddns trying to update too fast after boot (no wan/dns yet)

#1710 closed (worksforme) Custom DDNS forced update not working with custom dns

_________________
"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
dplettner
DD-WRT Novice


Joined: 15 Jul 2016
Posts: 20

PostPosted: Mon Oct 03, 2022 1:56    Post subject: Reply with quote
Thanks for the responses.

I have "Use External IP Check" set to No. The gifted router was reset to defaults in July and no longer has my DDNS account credentials.

I figured there is a better way to test this to see if it is functioning as I would hope it would.

It's Sunday evening, and I just set "Force Update Interval" to 1 day and rebooted the R7800.

After rebooting, I logged into my account at https://freedns.afraid.org/dynamic and manually set the IP address to another address that is not my current WAN IPv4 address.

If I log into https://freedns.afraid.org/dynamic Tuesday morning, the R7800 should have restored my WAN IPv4 address, correct?

I will let you know if the WAN address is restored. BTW, I am running DD-WRT v3.0-r50274 std (09/27/22).
dplettner
DD-WRT Novice


Joined: 15 Jul 2016
Posts: 20

PostPosted: Wed Oct 05, 2022 0:25    Post subject: Reply with quote
It has now been two days since I set Force Update Interval to 1 and manually changed the DDNS record at afraid.org, and the record has still not been restored to the proper WAN IPv4 address. To get DD-WRT for force an update, I tweaked the credentials, clicked Apply Settings, put the credentials back, and clicked Apply Settings again, and the proper WAN IPv4 address was restored at afraid.org.

The DDNS tab's help panel has two entries for Force Update Interval:

Quote:
Force Update Interval:

Type an integer number in the box to set the force update interval (in days). Updates should only be performed automatically when your IP address has changed. Be aware of your DNS provider's update abuse policy to avoid having your hostname or domain blocked.


And after clicking More this is displayed:

Quote:
Force Update Interval

Type an integer number in the box to set the force update interval (in days). Force update is an update which will be done although your IP address is still the same. Force update is required, especially for non donator of dyndns.org users, in order to avoid the host name of being deleted.


The second entry more clearly states how I think the function should work.

However, it seems like Force Update Interval is broken. If the DDNS record at the DDNS provider is somehow set to the wrong IP address value, I do not think you can depend on the Force Update Interval function to ever restore it back.
dale_gribble39
DD-WRT Guru


Joined: 11 Jun 2022
Posts: 1899

PostPosted: Wed Oct 05, 2022 1:55    Post subject: Reply with quote
One missing piece of this puzzle is, we have no idea what build you're running, nor do we have a larger picture of your overall configuration that may affect this (i.e. WAN configuration).
_________________
"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
dplettner
DD-WRT Novice


Joined: 15 Jul 2016
Posts: 20

PostPosted: Wed Oct 05, 2022 2:15    Post subject: Reply with quote
The build is fairly recent:

DD-WRT v3.0-r50274 std (09/27/22)

My ISP is Comcast and I have an ARRIS SURFboard S33 connected to the R7800.

The WAN Connection Type is "Automatic Configuration - DHCP."

I have had this configuration with DD-WRT and afraid.org for more than a decade after moving away from a fixed-IP DSL connection. It's always worked fine and DD-WRT has always done a great job of detecting a changed IP address and updating the record. This is the first time I have ever needed Force Update Interval to work, and frankly, I probably will not encounter this again. However, it would still be nice to see it fixed because it would make the DDNS function more robust.

Thanks!
dplettner
DD-WRT Novice


Joined: 15 Jul 2016
Posts: 20

PostPosted: Wed Oct 05, 2022 2:59    Post subject: Reply with quote
By the way, there is an interesting backstory about how I discovered this, but it's not that relevant to finding a good recipe to make it easy to repeat the problem and fix it.

I had an old IP Power 9258S switch that I used to cycle power to my PCs while away from home, and accessing it remotely depends on the DDNS record at afraid.org, along with a static port forward in DD-WRT. It died just before leaving home for 2.5 months, and I replaced it with an MSNSwitch (https://www.amazon.com/gp/product/B081TKJJBS) that basically has the same functionality. A couple weeks after leaving home I was unable to access the MSNSwitch, but my other connected devices, such as a Ring doorbell, Ecobee thermostat, and garage door opener, were all available and working fine. Since the MSNSwitch was new, I figured that it suffered infant mortality.

When I get back, I found that the MSNSwitch worked fine on my local network. As I mentioned above, I gave the R7000 to a relative. However, what I did not mention is that I maintain the router for the relative too, and run DD-WRT on the relative's router and maintain another IP record for the relative's ISP. It was not until I was trying to debug the failed MSNSwitch that I logged into afraid.org, and that is when I noticed that the relative and I had the same IP address for our afraid.org DDNS records. Then I wondered why DD-WRT did not do a forced update to restore the record within 10 days? I was gone for 2.5 months. I also know that the power was out a few times, and the R7800 would have rebooted at least a few times.

Anyway, as I mentioned, this is not very relevant now because it's easy to simply alter the DDNS record and then confirm whether or not DD-WRT does a forced update. Even if the issue is never fixed, now that I am aware of the issue it will be easy enough to avoid.
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Wed Oct 05, 2022 9:42    Post subject: Reply with quote
some time ago I also had problems with afraid.org.

It appeared that that were troubles with some of its subdomains

I switched to hopto.org (noip.com) which works the last time I checked

_________________
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: 1899

PostPosted: Wed Oct 05, 2022 13:35    Post subject: Reply with quote
I would test using the external IP check and not the internal IP check code (change "Use External IP Check" to "Yes") to verify that works without human intervention.
_________________
"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
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Thu Oct 06, 2022 9:28    Post subject: Reply with quote
You can play with the update intervals to check.

the ddns.conf file is situated in /tmp/ddns

Copy it to /tmp adjust it and add --verbose 5 for logging details

then kill inadyn after you have seen what the command line is with ps, copy that command line and adjust to run with your own config, I am doing it right now just to check

_________________
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
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Fri Oct 07, 2022 6:33    Post subject: Reply with quote
Forced update seems to work, I use noip.com and manually on the noip website modified my IP address.

I had set the forced update interval to 1 hour and after one hour it was updated.

I did not test if it updates if the WAN IP address of the routers changes that will be next if I can spare the time

_________________
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
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC 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 cannot attach files in this forum
You cannot download files in this forum