linux_wiki:ddclient

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
linux_wiki:ddclient [2015/08/04 23:47]
billdozor created
linux_wiki:ddclient [2019/05/25 23:50] (current)
Line 6: Line 6:
  
 **Checklist** **Checklist**
-  * CentOS 7 used for this tutorial, but others will work as well.+  * Distro(s): Enterprise Linux
  
 ---- ----
Line 12: Line 12:
 ===== Prep OpenDNS Account ===== ===== Prep OpenDNS Account =====
  
-Login to OpenDNS (https://login.opendns.com) +  - Login to OpenDNS (https://login.opendns.com) 
-Click on the Settings tab. +  Click on the Settings tab. 
-Select the desired network in the drop down box. +  Select the desired network in the drop down box. 
-Click on Advanced Settings on the left. +  Click on Advanced Settings on the left. 
-Ensure that "Enable dynamic IP update" is checked.+  Ensure that "Enable dynamic IP update" is checked.
  
 ---- ----
Line 26: Line 26:
 ==== Download ==== ==== Download ====
  
-Website: http://sourceforge.net/projects/ddclient/ +  * Website: http://sourceforge.net/projects/ddclient/ 
- +  Wget 3.8.3 (current as of 08/04/2015) 
-Wget 3.8.3 (current as of 08/04/2015) +  <code bash>
-<code bash>+
 wget http://downloads.sourceforge.net/project/ddclient/ddclient/ddclient-3.8.3.tar.bz2 wget http://downloads.sourceforge.net/project/ddclient/ddclient/ddclient-3.8.3.tar.bz2
 </code> </code>
Line 37: Line 36:
 Install perl ssl library Install perl ssl library
 <code bash> <code bash>
-yum install +yum install perl-IO-Socket-SSL
 </code> </code>
  
 +Extract and un-archive
 +<code bash>
 +tar -jxvf ddclient-3.8.3.tar.bz2
 +</code>
 +  * Note: if you receive an error while extracting, you might be on a minimal install and need to install bzip2 (yum install bzip2)
 +
 +Create required directories
 +<code bash>
 +mkdir /etc/ddclient
 +mkdir /var/cache/ddclient
 +</code>
 +
 +Copy files to system locations
 +<code bash>
 +cp sample-etc_ddclient.conf /etc/ddclient/ddclient.conf
 +cp ddclient-3.8.3/ddclient /usr/sbin/
 +cp ddclient-3.8.3/sample-etc_rc.d_init.d_ddclient /etc/rc.d/init.d/ddclient
 +</code>
 +
 +==== Configure ====
 +
 +Change perms, edit config file
 +<code bash>
 +chown root:root /etc/ddclient/ddclient.conf
 +chmod 600 /etc/ddclient/ddclient.conf
 +vi /etc/ddclient/ddclient.conf
 +
 +## OpenDNS.com account-config
 +use=web, web=myip.dnsomatic.com
 +ssl=yes
 +server=updates.opendns.com
 +protocol=dyndns2
 +login=email@domain.com
 +password=mypasshere
 +MyNetwork
 +</code>
 +  * Replace login and password with OpenDNS login credentials.
 +  * Replace "MyNetwork" with the name of the network in your OpenDNS dashboard.
 +
 +Test the config
 +<code bash>
 +ddclient -daemon=0 -debug -noquiet
 +</code>
 +  * Should see debug output, followed by "SUCCESS:  updating MyNetwork: good: IP address set to xxx.xxx.xxx.xxx"
 +
 +Enable/start the service
 +<code bash>
 +chkconfig --add ddclient
 +service ddclient start
 +</code>
  
 ---- ----
  • linux_wiki/ddclient.1438746463.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)