{"id":2296,"date":"2018-08-08T16:32:43","date_gmt":"2018-08-08T20:32:43","guid":{"rendered":"https:\/\/easy-admin.ca\/?p=2296"},"modified":"2018-09-19T12:50:59","modified_gmt":"2018-09-19T16:50:59","slug":"setup-dynamic-dns-using-ddclient-and-configure-for-noip-com-on-centos-7","status":"publish","type":"post","link":"https:\/\/easy-admin.ca\/index.php\/2018\/08\/08\/setup-dynamic-dns-using-ddclient-and-configure-for-noip-com-on-centos-7\/","title":{"rendered":"Setup dynamic DNS using ddclient and configure for noip.com on CENTOS 7"},"content":{"rendered":"<pre>yum install ddclient<\/pre>\n<p>There are some dependencies, however all of them should be installable from mainstream repos:<\/p>\n<p>bash perl perl-Digest-SHA1 perl-Getopt-Long perl perl-IO-Socket-SSL shadow-utils systemd<\/p>\n<p>Now that ddclient and it\u2019s dependencies are installed it is time to edit it\u2019s config file \/etc\/ddclient.conf:<\/p>\n<pre>[root@easy ~]# cat \/etc\/ddclient.conf\r\n ######################################################################\r\n ### (CC BY 3.0 IE) int21hex at\u00a0https:\/\/laptopdoctor.wordpress.com\/\r\n ### Based on https:\/\/www.andreagrandi.it\/ blog post\r\n ### \/etc\/ddclient.conf\r\n ### Setup Environment\r\n\r\ndaemon=900 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0                     # go easy on the server\r\n syslog=yes\r\n #mail-failure=root # no place like \/dev\/null, leaving in for later\r\n pid=\/var\/run\/ddclient\/ddclient.pid\r\n ssl=yes\r\n\r\n#######################################################################\r\n ### Workaround for ddclient to work with no-ip.com\r\n ### Grab external IP dyndns.com, use that for connection to noip.com\r\n ### Your $dynamicFQDN should be already setup\r\n\r\nprotocol=dyndns2\r\n use=web, web=checkip.dyndns.com\/, web-skip='IP Address'\r\n server=dynupdate.no-ip.com\r\n login=$YourUsername\r\n password=$YourPasswd\r\n $dynamicFQDN\r\n mx=mail.$dynamicFQDN\r\n backupmx=no\r\n #wildcard=yes|no \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0# left for later<\/pre>\n<p>It\u2019s not bad idea to update \/etc\/hosts with new domain name:<\/p>\n<pre>[root@easy ~]# cat \/etc\/hosts\r\n 127.0.0.1 localhost.locadomain localhost\r\n 127.0.0.1 customname.localdom customname\r\n 192.168.xxx.xxx $dynamicFQDN<\/pre>\n<p>With that out of the way, it is time to set up and enable system service:<\/p>\n<pre>[root@easy ~]# systemctl enable ddclient.service\r\n[root@easy ~]# systemctl start ddclient\r\n[root@easy ~]# systemctl status ddclient\r\n \u25cf ddclient.service - A Perl Client Used To Update Dynamic DNS Loaded:\r\n loaded (\/usr\/lib\/systemd\/system\/ddclient.service; enabled; vendor\r\n preset: disabled)\r\n Active: active (running) since Sat 2017-07-01 21:47:42 IST; 2h 47min ago\r\n Main PID: 1629 (ddclient - slee)\r\n CGroup: \/system.slice\/ddclient.service\r\n \u2514\u25001629 ddclient - sleeping for 300 seconds\r\n\r\nJul 01 21:47:40 vger systemd[1]: Starting A Perl Client Used To Update\r\nDynamic DNS...\r\nJul 01 21:47:42 vger systemd[1]: Started A Perl Client Used To Update\r\nDynamic DNS.<\/pre>\n<p>You can test if it\u2019s working in couple ways. Noip.com dashboard will tell you if hostname is active<\/p>\n<p>After ports are forwarded you can try accessing any of the services running on the server, like Webmin!<\/p>\n<p>https:\/\/yourname.no-ip<\/p>\n<p>Third option is to check DNS records for your $dynamicFQDN:<\/p>\n<pre>[root@easy ~]# nslookup $dynamicFQDN\r\n Server: 89.101.160.4\r\n Address: 89.101.160.4#53\r\n\r\nNon-authoritative answer:\r\n Name: $dynamicFQDN\r\n Address: xxx.xxx.xxx.xxx<\/pre>\n<p><em><strong>Enjoy!<\/strong><\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>yum install ddclient There are some dependencies, however all of them should be installable from mainstream repos: bash perl perl-Digest-SHA1 perl-Getopt-Long perl perl-IO-Socket-SSL shadow-utils systemd Now that ddclient and it\u2019s dependencies are installed it is time to edit it\u2019s config file \/etc\/ddclient.conf: [root@easy ~]# cat \/etc\/ddclient.conf ###################################################################### ### (CC BY 3.0 IE) int21hex at\u00a0https:\/\/laptopdoctor.wordpress.com\/ ### &hellip; <a href=\"https:\/\/easy-admin.ca\/index.php\/2018\/08\/08\/setup-dynamic-dns-using-ddclient-and-configure-for-noip-com-on-centos-7\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Setup dynamic DNS using ddclient and configure for noip.com on CENTOS 7<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2296","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/2296","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/comments?post=2296"}],"version-history":[{"count":0,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/posts\/2296\/revisions"}],"wp:attachment":[{"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/media?parent=2296"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/categories?post=2296"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easy-admin.ca\/index.php\/wp-json\/wp\/v2\/tags?post=2296"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}