ZoneEdit DDNS Setup

All about firmwares for routers. Support for RouterTech firmwares is here too.
Post Reply
FalkensMaze
Newbie
Newbie
Posts: 7
Joined: Sun Jan 14, 2007 1:20 am

ZoneEdit DDNS Setup

Post by FalkensMaze » Sun Jan 14, 2007 1:45 am

Hi,

I've just down loaded and installed the RT firmware - what a relief to have a decent version on my router, it worked without a hitch!

I've looked around to see if I can add ZoneEdit to the DynDNS clients listed, however it doesn't appear possible.

The details of the ZoneEdit update can be found at http://www.zoneedit.com/doc/dynamic.html#faq7 and state the following:
The program:
- detects an ip change on your computer
- hits a web page http://dynamic.zoneedit.com/auth/dynami ... .com...etc.
- the dynamic.html page detects the IP that the request came in on and updates the zone(s)
- the dynamic.html page also lowers the TTL for the zone(s) so that updates propagate quickly
I'm not afraid of the command line (I've already telnet'd onto the router and looked at the HTML source for the page!) but I can't figure out where to put this info so that it works!

All help is greatly appreciated,

Cheers,

FM.
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Post by thechief » Sun Jan 14, 2007 2:55 pm

You can't just add something like that. You need a program that understands all the protocols, etc. First try writing it as a command line tool. When it is working correctly as a command line tool, then one can think of how to integrate it with the web ui.
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
FalkensMaze
Newbie
Newbie
Posts: 7
Joined: Sun Jan 14, 2007 1:20 am

Post by FalkensMaze » Mon Jan 15, 2007 7:54 am

The command I've used on my servers in the past when I've built my own gateways has been along the lines of

Code: Select all

w get --quiet http://dynamic.zoneedit.com/auth/dynamic.html?host=www.zone1.com,www.zone2.com
or

Code: Select all

curl http://dynamic.zoneedit.com/auth/dynamic.html?host=www.zone1.com,www.zone2.com 
Both of which were accompanied by the user/pass switches for HTTP Basic Authentication.

Does that help at all?

Maybe you could point me to a tutorial on the base-layout of the system and I could modify the files myself, test it and then submit it to the source code?

FM.
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Post by thechief » Mon Jan 15, 2007 8:51 am

And are you saying that the "wget" approach doesn't work here?
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
FalkensMaze
Newbie
Newbie
Posts: 7
Joined: Sun Jan 14, 2007 1:20 am

Post by FalkensMaze » Mon Jan 15, 2007 9:03 am

I'm not currently able to test it at the moment as I'm at work, however I will try it this evening and check it out.

How do the other DynDNS updates work on the router for No-IP etc? I'm guessing that it uses a similar command?

Is there any documentation on the firmware and how it is setup/the packages it uses that I can see if I can modify the existing scripts and programs on ym router to test it out?

Thanks for the quick replies on this btw, it's great to get a positive response so fast!

FM
FalkensMaze
Newbie
Newbie
Posts: 7
Joined: Sun Jan 14, 2007 1:20 am

Post by FalkensMaze » Mon Jan 15, 2007 6:39 pm

Just tried it, busybox version of w get won't allow username or password to be passed to it. :(

How do the other scripts work if they need authentication?

FM
User avatar
thechief
RouterTech Team
RouterTech Team
Posts: 12067
Joined: Wed Feb 01, 2006 10:22 pm
Location: England, the Centre of Africa
Contact:

Post by thechief » Mon Jan 15, 2007 8:05 pm

DDNS support in RT firmware is not via scripts. It is via a compiled program.
You can get the GPL sources for that program here: http://mcmcc.bat.ru/dlinkt/acorp-russia ... rp.tar.bz2

But before that, there was a script called bironoip.sh (or something like that). But even that depended on a compiled program (noip2).
The Chief: :afro: Be sure to read the Firmware FAQ and do a Forum Search before posting!
No support via PM. Ask all questions on the open forum.
eltorio
Newbie
Newbie
Posts: 1
Joined: Wed Jul 04, 2007 1:33 pm

Post by eltorio » Wed Jan 09, 2008 3:23 pm

the wget approach works I use it

wget -O - 'http://USER:PASS@dynamic.zoneedit.com/a ... =HOST.FQDN' 2>/dev/null

eltorio

but I didn't add a script to store in the firmware yes
Post Reply