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!

[Resolved] Issue using script to update dnsexit DDNS

eviljafar

New Around Here
Edit: Asus RT-AC66R, Merlin 378.55 firmware

I followed the instructions at https://github.com/RMerl/asuswrt-merlin/wiki/Custom-DDNS and created a script to update DNS with dnsexit. When I run the script from a shell I get:
HTTP/1.1 200 OK
10=Hostname is not specified

When I copy/paste from the script my version of
http://update.dnsexit.com/RemoteUpdate.sv?login=<username>&password=<password>&host=<domain>&myip=
into a browser I get:
HTTP/1.1 200 OK
0=Success

I searched online and the only thing I found was this word.doc which wasn't any help http://downloads.dnsexit.com/ipUpdate.doc
I'm not sure what to try next, any suggestions will be appreciated.
 
Last edited:
what does this output when run from shell?

Code:
/usr/bin/wget http://update.dnsexit.com/RemoteUpdate.sv?login=<username>&password=<password>&host=<domain>
 
Thanks for your reply. I'm not sure if wget was ever in /usr/bin, but it is only in /usr/sbin on my router, so the path is /sbin in my script but I don't think that matters. Anyway I get the same
HTTP/1.1 200 OK
10=Hostname is not specified
 
that error code means that the value you passed for host does not exist on the account attached to that username.
 
Yeah, but it works in Firefox, but not the shell. I am copy/pasting what I have in the script/shell to Firefox and it works, originally giving me a
HTTP/1.1 200 OK
0=Success
and now a
HTTP/1.1 200 OK
1=IP is the same as the IP on the system
 
quote the url.

Code:
wget "http://update.dnsexit.com/RemoteUpdate.sv?login=vv&password=bb&host=vv&myip="
 
When I use with quotes 'http://update.dnsexit.com/RemoteUpdate.sv?login=vv&password=bb&host=vv&myip=' in the shell i get the following:

--2015-08-25 23:12:47-- http://update.dnsexit.com/RemoteUpdate.sv?login=<username>&password=<password>&host=<domain>&myip=
Resolving update.dnsexit.com... 67.214.161.141
Connecting to update.dnsexit.com|67.214.161.141|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: 'RemoteUpdate.sv?login=<username>&password=<password>&host=<domain>&myip=.1'
RemoteUpdate.sv?login=<username>&pa [ <=> ] 117 --.-KB/s in 0s
2015-08-25 23:12:47 (684 KB/s) - 'RemoteUpdate.sv?login=<username>&password=<password>&host=<domain>&myip=.1' saved [117]

I logged into the dnsexit UI and the IP address was correct, but it was already correct so I wasn't sure if it worked or not. So in the shell I tried 'http://update.dnsexit.com/RemoteUpd...ord=<password>&host=<domain>&myip=10.10.10.10' and I got the following:
--2015-08-25 23:17:50-- http://update.dnsexit.com/RemoteUpd...ord=<password>&host=<domain>&myip=10.10.10.10
Resolving update.dnsexit.com... 67.214.161.141
Connecting to update.dnsexit.com|67.214.161.141|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: 'RemoteUpdate.sv?login=<username>&password=<password>&host=<domain>&myip=10.10.10.10'
RemoteUpdate.sv?login=<username>&pa [ <=> ] 26 --.-KB/s in 0s
2015-08-25 23:17:51 (149 KB/s) - 'RemoteUpdate.sv?login=login=<username>&password=<password>&host=<domain>&myip=10.10.10.10' saved [26]

I logged into the dnsexit console and my IP had indeed been changed to 10.10.10.10.

So I tried the first thing again, that is 'http://update.dnsexit.com/RemoteUpdate.sv?login=vv&password=bb&host=vv&myip=' and it gave me a similar result to the first try with quotes, but when I checked the dnsexit UI it didn't update my IP, it stayed at 10.10.10.10.

So it seems it works with quotes, but only if the IP address is specified, which defeats the purpose of the script. I guess I could try setting the IP address as a variable and use it that way? That seems to be complicating something that should just work.
 
Someone at Asus recently screwed up their ddns server with password authentication! (Anyone else see the same..?) So I'm looking for an alternative ddns as backup. I haven't decided. Is dnsexit good?

To fix OP's issue, remove "&myip=" from the URL. dnsexit's server will automatically detect and update to your public IP.

Could you try and let us know?
 
freedns.afraid.org is fine. They have https. dnsexit doesnt whichis a show stopper for me. Google domains is fine too. Both free.
 
freedns.afraid.org is fine. They have https. dnsexit doesnt whichis a show stopper for me. Google domains is fine too. Both free.

Thanks. I settled with HE. I already have an account for their 6in4 tunnel. Save the hassle of registration.
 
To fix OP's issue, remove "&myip=" from the URL. dnsexit's server will automatically detect and update to your public IP.
Could you try and let us know?
Nope, I get the same response when I run that from the shell:
HTTP/1.1 200 OK
10=Hostname is not specified
 
Awesome, thanks guys! It works with quotes (either ' or ") and removing the &myip= from the URL. So the wiki is still not quite right, but as a forum newb I'm reluctant to change it.
Thanks again.
 
Awesome, thanks guys! It works with quotes (either ' or ") and removing the &myip= from the URL. So the wiki is still not quite right, but as a forum newb I'm reluctant to change it.
Thanks again.
i'll chamge it... use double quotes if you are using variables.
 
Add the line towards the end of /jffs/scripts/wan-start

I think that's the most appropriate place. It'll run whenever your WAN is up.
 
There is a script specifically for this. /jffs/ddns-start that runs on every ip change. Don't use wan-start....
 

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