Random thoughts shooting out of volatile mind
Using dyndns service with Dialup Modem on Debian/Ubuntu
I know dial up modems are almost out of date, but there are still people like me who are satisfied with dialup modem (or are not able to afford broadband :P ). So if you are using a dialup modem and want to use dyndns service there is good tool available for you to update you IP address to dyndns without having to login to the web interface. This tool is ddclient and can be downloaded from here.
For those who want to know what is dyndns, it provides home and small businesses users domain, email, and Internet infrastructure services. More info here.
  1. Ok once you download the tar ball extract it and copy the ddclient perl script to the /usr/sbin/(You need to be root or need to use sudo).
  2. Create /etc/ddclient directory and create a file ddclient.conf inside it with following contents

# /etc/<span class="searchword0">ddclient</span>/ddclient.conf
#
protocol=dyndns2
use=web
login=mylogin
password=mypassword
myhost.dyndns.org

Change the fields appropriately.
  1. Now create directory /var/cache/ddclient and create a file ddclient.cache inside it. You can use touch command for this purpose.
  2. To update your IP after you connect to internet run the following command
sudo ddclient -daemon 300 -syslog
The output of command will be present in /var/log/syslog. Just verify the log to make sure that you have updated the ip successfully. You can write this command to a script file and add it to startup but I don't recommend because while using modem we need to dial manually so we can update the ip with above command once we get connected to internet.


Posted by: copyninja on Tuesday, 30 March 2010

blog comments powered by Disqus
Fork me on GitHub