DynDns

From LQWiki
Jump to navigation Jump to search

dyndns is a service that allows you to access your computer under a static name. For example your home computer could have the address mycomputer.dyndns.org. Even if your home computer's IP changed, you would still be able to access it via the public internet. To get this, you will need

This article describes how you get a daemon running on your computer. It is written to fit SUSE Linux 11.1, but other distributions should work same or similar. Download ddclient like this:

yast -i subversion
svn co https://ddclient.svn.sourceforge.net/svnroot/ddclient/trunk ddclient

Configure it by editing /etc/ddclient/ddclient.conf:

protocol=dyndns2
use=web
login=yourusername
password=yourpassword
yourhostname.dyndns.org

Now edit the crontab to contain a call to dyndns and restart cron.

Screenlog

 tweedleburg:~/svn/ddclient # killall ddclient
 tweedleburg:~/svn/ddclient # ./ddclient
 WARNING:  file /etc/ddclient/ddclient.conf: file /etc/ddclient/ddclient.conf must be accessible only by its owner (fixed).
 WARNING:  file /var/cache/ddclient/ddclient.cache, line 1: program version mismatch; ignoring /var/cache/ddclient/ddclient.cache
 SUCCESS:  updating myname.dyndns.org: good: IP address set to 84.168.89.154
 tweedleburg:~/svn/ddclient # ./ddclient
 tweedleburg:~/svn/ddclient # rm /var/cache/ddclient/ddclient.cache
 tweedleburg:~/svn/ddclient # ./ddclient
 WARNING:  updating myname.dyndns.org: nochg: No update required; unnecessary attempts to change to the current address are considered abusive
 tweedleburg:~/svn/ddclient #