{"id":365,"date":"2012-06-27T22:51:38","date_gmt":"2012-06-28T04:51:38","guid":{"rendered":"http:\/\/csmartonline.com\/blog\/?p=365"},"modified":"2012-06-27T23:12:59","modified_gmt":"2012-06-28T05:12:59","slug":"clearos-and-dynamic-dns-client-ddclient","status":"publish","type":"post","link":"http:\/\/csmartonline.com\/blog\/2012\/06\/27\/clearos-and-dynamic-dns-client-ddclient\/","title":{"rendered":"ClearOS and Dynamic DNS Client &#8216;ddclient&#8217;"},"content":{"rendered":"<p>If you would like to update your dynamic IP address to a dynamic DNS service using &#8216;ddclient&#8217; and are using ClearOS, then you&#8217;ve come to the right place! Let&#8217;s get started:<\/p>\n<p>First, log into ClearOS. You can do this physically at the ClearOS terminal or using SSH. Then download and &#8220;install&#8221; &#8216;ddclient&#8217;:<\/p>\n<pre class=\"snippet-code\">wget\u00a0http:\/\/downloads.sourceforge.net\/ddclient\/ddclient-3.8.1.tar.gz\r\ntar\u00a0zxvf\u00a0ddclient-3.8.1.tar.gz\r\ncd\u00a0ddclient*\r\ncp\u00a0ddclient\u00a0\/usr\/sbin\r\nmkdir\u00a0\/etc\/ddclient<\/pre>\n<p>Now we need create our &#8216;ddcleint&#8217; config file:<\/p>\n<pre class=\"snippet-code\">vi \/etc\/ddclient\/ddclient.conf<\/pre>\n<p>Copy the following into the file and edit to suite your needs (I use DNS-O-Matic):<\/p>\n<pre class=\"snippet-code\">daemon=300 # checks every 300 seconds for a new IP address\r\nsyslog=yes # log update messages to syslog\r\nmail=root # mail all messages to root\r\nmail-failure=root # mail failed update messages to root\r\npid=\/var\/run\/ddclient.pid # records PID\r\n#ssl=yes # use ssl-support - works with ssl-library - uncomment if you have ssl support\r\n\r\n##\r\n## DNS-O-Matic Account Configuration\r\n##\r\n## 'all.dnsomatic.com' updates all hostnames in an account\r\n## replace with an individual hostname if not needed\r\n##\r\nuse=web, web=myip.dnsomatic.com #comment if using ClearOS as a gateway\r\n#use=if, if=ppp0 #uncomment if using ClearOS as a gateway\r\nserver=updates.dnsomatic.com, \\\r\nprotocol=dyndns2, \\\r\nlogin=DNS-O-MATIC USERNAME, \\\r\npassword=DNS-O-MATIC PASSWORD \\\r\nall.dnsomatic.com<\/pre>\n<p>Next we need to create the cache folder for &#8216;ddcleint&#8217; to use:<\/p>\n<pre class=\"snippet-code\">mkdir \/var\/cache\/ddclient<\/pre>\n<p>Let&#8217;s make sure everything is working properly before telling &#8216;ddclient&#8217; to startup automatically:<\/p>\n<pre class=\"snippet-code\">ddclient -daemon=0 -debug -verbose -noquiet<\/pre>\n<p>If everything looks good, continue with the following commands to add &#8216;ddclient&#8217; to your autostart:<\/p>\n<pre class=\"snippet-code\">cp sample-etc_rc.d_init.d_ddclient \/etc\/rc.d\/init.d\/ddclient\r\n\/sbin\/chkconfig --add ddclient<\/pre>\n<p>After adding &#8216;ddclient&#8217; to the autostart, it&#8217;s a good idea to reboot and verify it starts automatically:<\/p>\n<pre class=\"snippet-code\">reboot\r\nservice ddclient status<\/pre>\n<p>If you ever need to forcefully update your IP address, you can use the following command to do so:<\/p>\n<pre class=\"snippet-code\">ddclient -force<\/pre>\n<p>That&#8217;s it! Hopefully you now have a fully operational installation of the Dynamic DNS Client &#8216;ddclient&#8217;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you would like to update your dynamic IP address to a dynamic DNS service using &#8216;ddclient&#8217; and are using ClearOS, then you&#8217;ve come to the right place! Let&#8217;s get started: First, log into ClearOS. You can do this physically &hellip;<\/p>\n<p class=\"read-more\"><a href=\"http:\/\/csmartonline.com\/blog\/2012\/06\/27\/clearos-and-dynamic-dns-client-ddclient\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20],"tags":[103,45,60,106,101,105,104,102],"class_list":["post-365","post","type-post","status-publish","format-standard","hentry","category-tiptrick","tag-automatic-dns","tag-clearos","tag-daemon","tag-ddclient","tag-dns","tag-dns-client","tag-dns-update","tag-dyndns"],"_links":{"self":[{"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/posts\/365","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/comments?post=365"}],"version-history":[{"count":23,"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/posts\/365\/revisions"}],"predecessor-version":[{"id":388,"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/posts\/365\/revisions\/388"}],"wp:attachment":[{"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/media?parent=365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/categories?post=365"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/csmartonline.com\/blog\/wp-json\/wp\/v2\/tags?post=365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}