What's new
  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Issue with custom DDNS (start_ddns script)...?

HHawk

Regular Contributor
Hi guys,

First off; I am using afraid.org custom DNS solution.
And I followed the tutorial for it here:

Nov 30 15:35:57 watchdog: start ddns.
Nov 30 15:35:57 rc_service: watchdog 253:notify_rc start_ddns
Nov 30 15:35:57 custom script: Running /jffs/scripts/ddns-start (args: 125.125.125.125)
Nov 30 15:36:27 watchdog: start ddns.
Nov 30 15:36:27 rc_service: watchdog 253:notify_rc start_ddns
Nov 30 15:36:27 custom script: Running /jffs/scripts/ddns-start (args: 125.125.125.125)
Nov 30 15:36:57 watchdog: start ddns.
Nov 30 15:36:57 rc_service: watchdog 253:notify_rc start_ddns
Nov 30 15:36:57 custom script: Running /jffs/scripts/ddns-start (args: 125.125.125.125)
Nov 30 15:37:27 watchdog: start ddns.
Nov 30 15:37:27 rc_service: watchdog 253:notify_rc start_ddns
Nov 30 15:37:27 custom script: Running /jffs/scripts/ddns-start (args: 125.125.125.125)
Nov 30 15:37:57 watchdog: start ddns.
Nov 30 15:37:57 rc_service: watchdog 253:notify_rc start_ddns
Nov 30 15:37:57 custom script: Running /jffs/scripts/ddns-start (args: 125.125.125.125)
Nov 30 15:38:27 watchdog: start ddns.
Nov 30 15:38:27 rc_service: watchdog 253:notify_rc start_ddns
Nov 30 15:38:27 custom script: Running /jffs/scripts/ddns-start (args: 125.125.125.125)
Nov 30 15:38:57 watchdog: start ddns.
Nov 30 15:38:57 rc_service: watchdog 253:notify_rc start_ddns
Nov 30 15:38:57 custom script: Running /jffs/scripts/ddns-start (args: 125.125.125.125)
Nov 30 15:39:27 watchdog: start ddns.
Nov 30 15:39:27 rc_service: watchdog 253:notify_rc start_ddns
Nov 30 15:39:27 custom script: Running /jffs/scripts/ddns-start (args: 125.125.125.125)
etc...

Apparently it's checking every 30 seconds...? I don't think this is normal behaviour?
I have no idea what I am doing wrong, or what's wrong here.

This how the script looks like, but I doubt anything is wrong with it...

Code:
#!/bin/sh

curl -k "https://freedns.afraid.org/dynamic/update.php?MY-PERSONAL-KEY" >/dev/null 2>&1 &

if [ $? -eq 0 ]; then
    /sbin/ddns_custom_updated 1
else
    /sbin/ddns_custom_updated 0
fi

The only thing I can think of which is wrong or causing the problems are the settings under: WAN > DDNS:

Enable the DDNS Client: Yes
Server: Custom
Host Name: my.customhostname.com (at afraid.org)
Forced refresh interval (in days): 1

I own two Asus routers (one for work and one for home), both have the same issue (though different hostname).

Any ideas?

Thank you for your time and answer(s).

Regards
 
Have you inserted 44 signs key here: MY-PERSONAL-KEY
Run this to get rid of any CR at end of line: dos2unix /jffs/scripts/ddns-start
Make sure you don't have .sh at end of ddns-start script
And run chmod a+rx /jffs/scripts/ddns-start to set file rights

EDIT: make sure you not are on double nat.
 
Last edited:

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top