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!

DynDNS own Scripts/cron jobs

jochenthomas

Occasional Visitor
Hi,
Regarding DynDNS (on Merlin build 3.0.0.4.260.21) I have some questions:

1. General:
I created a DynDNS account at asuscomm.com, but it seems that it isn't working correctly.
Comparing the public IP from the Cable Provider and the pinged IP the result shows completely different IP’s.
So the received WAN-IP which is shown on the Network Map page is not the same as the one I get after doing “ping myname.asuscomm.com”. The cable provider is using ds-lite – only if this is important.
Why I can have such different IP’s? How often a dyndns check is performed by the router? Why the DNS of asuscomm is not refreshing?​

2. Own DynDNS:
Another option would be to use a script from my Domain/DNS provider which is regfish.com.
They have a script which you can find here: http://io.regfish.de/downloads/dyndns/regfish.com_dynDNSv2_wget.tar.gz

After some hiccups I was able to enable JFFS with success (see here here), it says: "JFFS 1.38 / 32.00 MB".

So I have the script now on a JFFS directory.
But I am still confused with the fact that it has to be run as root.
The regfish_dyndns_start.sh has to be integrated in /etc/rc.d/boot.local...
As far as I understood root is only 'read only'. Or is the created User/PW combination like a root account?
How I can start this script automatically at startup?
How I can create a cron job on the router to run the script every minute?​

Can someone give me some ideas how to proceed, so I can use my own domain via this specific DynDNS?

Thanks in advance.
Ah… and BTW: Can I install tools like mc on the router (midnight commander)?
 
Last edited:
If your IP begins with 10.xxx or 192.xxx, then it probably means your DSL model is also acting as a router, causing a double NAT situation. You will have to see if that modem can be put in bridged mode.

I believe mc is available through either Optware or Entware (check the forums for more info on how to set these up)
 
Hi RMerlin, thanks.
Later that evening the IP's were the same, maybe there was an issue with updating the DNS?? And no, the cable router was already in "bridge mode", so I see only the IP from the cable provider...

But can I ask again regarding the other qustions?
- MC >> I understand, I have to install Optware
- running any .sh script on the box via cron job (root yes/no) >> currently I have no idea and need help at least where or for what I have to look for some guidance...

Many thanks for any hint :-)
 
Hi RMerlin, thanks.
Later that evening the IP's were the same, maybe there was an issue with updating the DNS?? And no, the cable router was already in "bridge mode", so I see only the IP from the cable provider...

But can I ask again regarding the other qustions?
- MC >> I understand, I have to install Optware
- running any .sh script on the box via cron job (root yes/no) >> currently I have no idea and need help at least where or for what I have to look for some guidance...

Many thanks for any hint :-)

Simplest way to setup a cron job is through the "cru" tool.

cru a MorningRebootJob1 " 0 5 * * * reboot"

This will create a cron job that will reboot the router at 5 am every morning.

To re-create the cron job automatically at boot time, you have to create a user script. See the Wiki on my Github repo for more info on user scripts.

Note that the root user on Asuswrt is "admin".
 

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