• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

Howto: auto-update DynDNS on Linux firewall

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

Dice

Member
Joined
Apr 22, 2006
Location
Sioux Falls, SD
I have just struggled for a while getting this to work, and now want to share this little howto with you guys.


Howto Make ClarkConnect Auto-update DynDNS IP Address from your desktop.
What you need:

-Putty ( http://www.chiark.greenend.org.uk/~sgtatham/putty/ )
-A DynDNS account, free (as in beer).

1) Install putty onto your Windows box

2) Putty into the Clark server and do:

Code:
$ wget http://downloads.sourceforge.net/ddclient/ddclient-3.7.3.tar.gz
$ tar zxvf ddclient-3.7.3.tar.gz
$ cd ddclient* 
$ cp ddclient /usr/sbin
$ mkdir /etc/ddclient
3) In your internet browser, log into DynDNS.com > Support > DNS Tools > Update Client Configurator> have it create the config text for ddclient. Copy this text onto clipboard. Then, in the Putty window, do:

Code:
$ nano /etc/ddclient/ddclient.conf
4) Paste the clipboard, (alt-click the mouse in the Putty window) find the DynDNS account password and enter it in the space allotted, and crtl+o; <enter> crtl+x. Then do:

Code:
$ ddclient -daemon=0 -query
$ cp sample-etc_rc.d_init.d_ddclient /etc/rc.d/init.d/ddclient
$ /sbin/chkconfig --add ddclient

Test by doing:

Code:
$ ddclient
As a final check, manually log into DynDNS (on the web) and change your IP address to something incorrect. Reboot the server, ( $ reboot in putty) check your DynDNS account webpage to see if the IPs have been correctly updated.
 
Last edited:
Would add that (atleast on 5.0) you have to also make a cache dir for it:
Code:
$ mkdir -p /var/cache/ddclient

if not, the ddclient daemon will die silently and leave it's pid file to rott...
 
Back