Install ddclient Dynamic DNS Client on Linux
 

Sonora Communications, Inc.

  • Increase font size
  • Default font size
  • Decrease font size

Install ddclient Dynamic DNS Client on Linux

E-mail Print PDF

These are notes on how to manually install and configure the simple ddclient dynamic DNS client on Centos 5.  It's probably identical on most or all other linux flavors.

Dynamic DNS is a fairly simple way to assign a publicly-addressable host name to a system even if you do not have a fixed IP address.

If you really need to depend on your access to this computer, an dyou can affor the approximattely $15 per month extra, it is preferable to get a static IP address and handle your DNS in the traditional manner.

Other Options

Go here for SME 7.

You might be able to use a package manager (recommended).

Service

We use dyndns.org for dynamic DNS services.  They offer free as well as pay services.  You can download various dynamic DNS clients there, including for Windows machines.

Installation

wget http://cdn.dyndns.com/ddclient.tar.gz
tar -xzvf ddclient.tar.gz
cd ddclient-3.7.3/
mkdir /etc/ddclient
mkdir /var/cache/ddclient
cp ddclient /usr/local/sbin
cp sample-etc_ddclient.conf /etc/ddclient/ddclient.conf
cp sample-etc_rc.d_init.d_ddclient /etc/rc.d/init.d/ddclient
chkconfig --add ddclient
cd ..
rm -rf ddclient-3.7.3/

Now edit the /etc/ddclient/ddclient.conf file:

vim /etc/ddclient/ddclient.conf

so that it contains something like:

use=web
login=yourdndnslogin
password=yourdyndnspassword
server=members.dyndns.org,            \
protocol=dyndns2                      \
yourhost.dyndns.domain

Now start the ddclient daemon:

/etc/init.d/ddclient start

You can check status and troubleshoot using:

/etc/init.d/ddclient status
/etc/init.d/ddclient stop

tail /var/log/messages

Last Updated on Thursday, 04 November 2010 12:55