[nzlug] ADSL modem / dyndns
Shane
shane at weasel.is-a-geek.net
Fri Mar 23 07:07:21 NZST 2007
On Friday 23 March 2007 04:32, tich at clad.co.nz wrote:
> Could someone please recommend an ADSL modem that allows port forwarding
> and also has the facility to update a Dyndns domain with the current IP
> address.
>
> I started to set someone up with this last night only to discover the
> dyndns update service has been disabled on the crappy adsl modems Xtra
> supplies.
>
Im assuming you mean the venerable DSL302G router/modem
The DSL302G has the ability to run scripts, and can tell you the ip on its
outbound interface. It shouldnt be difficult to match those two facts and
roll your own.
If scripting for the DSL302G is a out of the question (I cant for example
remember where the docs for the API are on the interweb) you can write a
script on your webserver that queries the modem via telnet.
You might find the braindump I have on
http://shanes.dyndns.org/index.php/dlink-dsl302g/ helpful
In particular the
$get ipaddress
command. will return the ip address on all the interfaces, and a sed/awk/grep
will give you what you want
HTH
More information about the NZLUG
mailing list