cancel
Showing results for 
Search instead for 
Did you mean: 

Alternate dyndns with Technicolor TG582n

rodandjaxforum
Dabbler
Posts: 13
Registered: ‎06-09-2013

Alternate dyndns with Technicolor TG582n

Hi All,
Free Dyndns.org is no longer  Embarrassed
So, I'd like to give duckdns a go but it's not an option on the router's gui.  I'm wondering if I can set it up via the system's telnet.  Duckdns also provide a number of downloads for different OS's.  Might this be the problem in that the only way to use duckdns is by using an application which runs on an OS?  Can (and this is a big 'can') any of these apps run on the technicolor (it's linux isn't it?)?
Thanks in advance
Rodp
3 REPLIES 3
npr
Pro
Posts: 1,898
Thanks: 119
Fixes: 9
Registered: ‎21-01-2013

Re: Alternate dyndns with Technicolor TG582n

This shows how to configure a custom ddns provider in the Technicolor router.
http://npr.me.uk/telnet.html#updateddns
James3
Newbie
Posts: 3
Registered: ‎25-10-2013

Re: Alternate dyndns with Technicolor TG582n

Hi,
I have got this working on my Technicolor TG582n FTTC
You will need to use telnet (you may need to enable it on your pc first)
Steps are as follows:
telnet to your router e.g
telnet 192.168.1.1
once logged in type the following commands and press enter after each line
dyndns
service
modify
name = custom
[server] = www.duckdns.org
[port] = www-http   (leave as default)
[request] = /update/yourdomain/yourtoken                 example: /update/myfreedomainname/498743820748932-2384973298-fdfhjdk
[updateinterval] = 10800  (in seconds - this 3 hours)
[retryinterval] = 30 (left as default)
[max_retry] = 3 (left as default)
saveall
Once you have done that you should be able to go to the gui interface for the router in your web browser and go to the dyndns settings.
In there set user to NA
password: I entered my token but it shouldn't matter as long as its not blank
service: custom (as thats the one we edited in telnet above)
host: www.duckdns.org
Hope this helps as it is working for me.
pidg
Newbie
Posts: 7
Registered: ‎17-01-2015

Re: Alternate dyndns with Technicolor TG582n

I wanted PHP code on my website to 'know' my Plusnet IP, so it could access an IP webcam. However, I don't like third party dynamic DNS services.
Thanks to the posts above, there is a way to have your TG582n send your IP to your website:
1. On your site, create the following php script, ipupdate.php:
[tt]<?php
if ( $_SERVER["PHP_AUTH_USER"] == "someusername" && $_SERVER["PHP_AUTH_PW"] == "replacethis" )
{
       file_put_contents("ip.txt", $_SERVER["REMOTE_ADDR"]);
}  
?>[/tt]
2. Create ip.txt in the same folder and change its permissions to world-writeable (e.g. by doing chmod 777 ip.txt)
3. Telnet into your router, and enter the following commands:
[tt]dyndns service modify[/tt]
[tt]name = custom[/tt]
[tt][server] = www.yourwebsite.co.uk[/tt]
[tt][port] = 80[/tt]
[tt][request] = /ipupdate.php[/tt]
[tt][updateinterval] = 10800[/tt]
[tt][retryinterval] = 30[/tt]
[tt][max_retry] = 3[/tt]
[tt]saveall[/tt]
4. Log in to the web interface, click Toolbox, Dynamic DNS, Configure
5. Select Dynamic DNS service "custom" and enter your username and password as in the PHP script. Enter your website as hostname.
6. When you click Apply, it should connect to your website and run the PHP script.  And your home IP should appear in ip.txt
Voila! On mine I actually set it up its own subdomain, so under 'request' I just put / but it should work as above.