[nzlug] ADSL modem / dyndns

Cliff Pratt enkidu at cliffp.com
Fri Mar 23 08:52:16 NZST 2007


Shane wrote:
> 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
> 
I had an SNMP script to get the IP address out of a DSL504. Can't find 
it now, but it was about 5 - 6 lines of Perl.

Cheers,

Cliff



More information about the NZLUG mailing list