From Hack Sphere Labs Wiki
Revision as of 14:48, 21 January 2012 by Webdawg (talk | contribs)

Jump to: navigation, search


Note: dyndns is greedy and removed the free services

ddclient works great with dyndns. The only thing that you have to do is enable a cron script to force an update.

Taken from this guide: [1]

sudo apt-get install ddclient

the ncurses wizard should come up. make sure you have your host added at dyndns.com with just any ip before you choose from a list in the wizard. If you don't have it added it can't pull the hostname.

If you need to do it manually...look at the Ubuntu link above.

One thing that most forget is that if you do not update the addy every 30 days dyndns will delete it. (With the free at least) This means that you must force an update every once in a while. (If you update too much they will disable your account to.)

The below is taken from [2]

Getting DDclient to Periodically Update
Your DDNS service provider will typically force your entry to expire if it doesn't receive an update within a few months. 
The easiest way to solve this problem is to use the cron sample file that ddclient provides. Here's how to do it.
1. Use the rpm command to get a list of installed DDclient files, one of which is the cron file .
[root@bigboy tmp]# rpm -ql ddclient | grep cron /usr/share/doc/ddclient-3.7.1/sample-etc_cron.d_ddclient [root@bigboy tmp]#
2. Copy the file to the /etc/cron.d directory.
[root@bigboy tmp]# cp /usr/share/doc/ddclient-3.7.1/sample-etc_cron.d_ddclient /etc/cron.d/ddclient.cron
3. Edit the file and uncomment the cron entries,
[root@bigboy tmp]# vi /etc/cron.d/ddclient.cron
4. Restart cron.
[root@bigboy tmp]# service crond restart
This simple modification will allow you to sleep at night without worrying whether ddclient is working correctly!

I found the above example cron file somewhere else but everything else is the same except that my command to restart crond was "service cron restart". I did not uncomment the second cron line in the file.


o 'noip'

The 'No-IP Compatible' protocol is used to make dynamic dns updates over an http request. Details of the protocol are outlined at: http://www.no-ip.com/integrate/

Configuration variables applicable to the 'noip' protocol are:

 protocol=noip                    ##
 server=fqdn.of.service       ## defaults to dynupdate.no-ip.com
 login=service-login          ## login name and password  registered with the service
 password=service-password    ##
 fully.qualified.host         ## the host registered with the service.

Example ddclient.conf file entries:

 ## single host update
 protocol=noip,                                        \
 login=userlogin@domain.com,                                \
 password=noip-password                           \

A Config that I made:



To run ddclient as a daemon, please set run_daemon to 'true' in /etc/default/ddclient ...