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!

Custom Script for StrongDNS Ip Update on Reboot

Lee Banwell

Occasional Visitor
I use a DNS service that requires me to update my IP address every time my router reboots and I get assigned a new IP.

I am given a specific identifier in the format of -

"https://strongdns.com/ipupdater/***Unique Key***"

Now I can do this manually.. but would like to add a custom command to the startup of the router everytime my ISP resets my connection (approx every 3 days). StrongDNS themselves document the command that can be used for DD-WRT routers.

img-6.jpg

img-8.jpg

img-8.jpg


I've also read through https://github.com/RMerl/asuswrt-merlin/wiki/Custom-DDNS but I am still unsure how to proceed? I see the wget -q0 - "Http*** command being used but i am not sure if I can just substitute in the simple command from my DNS service. I note also that he DD-wrt instruction mark the script as Cron?

I've installed both Putty, Notepad ++ and WinSCP but I am unsure how to turn all that into a custom script for my router to run every time my connection get reconfigure due to router reboot or ISP renewal.

I am hoping it would as simple as loading a custom script into the Jffs area of the router?

Any help greatly appreciated.
 
Yeah got something like the above working but it was continually updating my IP address to StrongDNS every 30 secs or so. Also had to enable the script by switching on Custom DDNS in router setup.

In the end I've settled on a wan-start script instead.

#!/bin/sh
logger -t $(basename $0) "Start"
sleep 10
curl -s -k "https://strongdns.com/ipupdater/MY KEY HERE"
logger -t $(basename $0) "End"

Seems to be working.
 

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