DDNS is the answer for those networking devices that have no access to a static IP address and a common need for residential users. In this post I have a Linux server at home and need to have remote access to it from any location.
Self explanatory we want to be able to send the account password via a secure connection.
sudo apt-get install ssh libio-socket-ssl-perl
Install DDclient.
sudo apt-get install ddclient
Select the DDNS provider Provide the assigned qualified domain name Provide your username Provide your password And the interface The configuration file is located at /etc/ddclient.conf. Edit your configuration to make use of the secure configuration.
sudo nano /etc/ddclient.conf
# Configuration file for ddclient generated by debconf
#
daemon=300
pid=/var/run/ddclient.pid
ssl=yes
use=web, web=checkip.dyndns.com/, web-skip=’IP Address’
login=username
password=password
protocol=dyndns2
server=members.dyndns.org
hostname.dyndns.org
Now make sure DDclient is set to work as a daemon. You need to change run_daemon=”false” to run_daemon=”true”.
sudo nano /etc/default/ddclient
# Configuration for ddclient scripts
#
run_ipup=”false”
run_daemon=”true”
daemon_interval=”300″
Now verify DDclient is working by rebooting first and issuing the following two commands.
sudo /etc/init.d/ddclient restart
sudo /etc/init.d/ddclient status
If the client is working correctly you should see the same output.
Status of Dynamic DNS service update utility: ddclient is running
In case you want to reconfigure the client issue the following command.
dpkg-reconfigure ddclient
Don’t forget to allow port forwarding on your router otherwise all attempts will fail. Flashed routers like the Linksys WRT54GL with Tomato firmware allow for a wide range of options when it come to choosing a DDNS provider from the web interface. This means centralisation and easy configuration.
DynDNS, ddclient, ubuntu — Dec 11, 2008