{"id":13644,"date":"2014-09-28T20:58:44","date_gmt":"2014-09-28T18:58:44","guid":{"rendered":"http:\/\/www.roumazeilles.net\/news\/en\/wordpress\/?p=13644"},"modified":"2014-09-30T19:21:11","modified_gmt":"2014-09-30T17:21:11","slug":"synology-on-a-sub-domain-with-a-dynamic-ip-address","status":"publish","type":"post","link":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/2014\/09\/28\/synology-on-a-sub-domain-with-a-dynamic-ip-address\/","title":{"rendered":"Synology on a sub-domain (with a dynamic IP address)"},"content":{"rendered":"<h3>My problem:<\/h3>\n<p>I&#8217;ve got a Fiber connexion to the Internet (at Num\u00e9ricable, one of the main ISP in France) which is forcing a dynamic IP address on me (no fixed IP address, even with a premium; They&#8217;ve settled in the XXth century). This would not be very serious except that I host a RAID server from Synology (a DS413j DiskStation with 4 hard drives in RAID-5 redundant mode) which provides several services I would like to share with the Internet (while I&#8217;m travelling with my iPhone or my laptop, I&#8217;d like to get access to my files through FTP, or my email server).<\/p>\n<p>So, I decided to set things right in order to appropriately locate the Synology DiskStation in a sub-domain of my own (e.g. <code>mail.roumazeilles.net<\/code>).<\/p>\n<h3>The solution I opted for:<\/h3>\n<h4>Dynamic IP addess:<\/h4>\n<p>Since my IP address is dynamic, there&#8217;s no way I can progress until I solved this single issue. I chose to use the DDNS service DDNS from Synology. Since I use DSM 5.0 (the most recent software version from Synology), I can reach the appropriate option through the control panel and the &#8220;External access&#8221; menu. I just added a DDNS, selecting Synology as a service supplier, and I recorded the name I wanted (let&#8217;s say <code>ds<\/code>). From this point, despite the IP address changes, my DiskStation is always accessible at <code>ds.synology.me<\/code>.<\/p>\n<h4>DNS subdomain:<\/h4>\n<p>After that, I need to point <code>mail.roumazeilles.net<\/code> onto <code>ds.synology.me<\/code>. This is slightly more complex because my <code>roumazeilles.net<\/code> domain nam is reserved atz <a href=\"http:\/\/www.gandi.net\/\" title=\"Gandi\">Gandi<\/a> and it is pointed toward a server hosted by <a href=\"http:\/\/www.ovh.net\/\" title=\"OVH\">OVH<\/a>. It&#8217;s the hosted server (rented from OVH) which includes all the information relating to <code>roumazeilles.net<\/code>. So, I went to my server control panel and, in its DNS configuration, I modified (in your case, you may need to add) a CNAME record.<\/p>\n<p><code>mail 10800 IN CNAME ds.synology.me.<\/code> <em>(Don&#8217;t forget the final dot\/period in your CNAME entry, or it won&#8217;t work!) <\/em><br \/>\nSince I am lucky, my control panel at OVH includes an easy way to get the correct syntax (it&#8217;s safer): I tell it the <code>mail<\/code> subdomain is described by a <code>CNAME<\/code> record pointing to <code>ds.synology.me<\/code> (a bit terse, but not difficult).<\/p>\n<p>Then, I only had to wait for the DNS information to &#8220;propagate&#8221; (from a few minutes to a few hours, sometimes up to 24-48 hours). And a little check using <code>ping mail.roumazeilles.net<\/code> confirmed that it answered from my Num\u00e9ricable IP address.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My problem: I&#8217;ve got a Fiber connexion to the Internet (at Num\u00e9ricable, one of the main ISP in France) which is forcing a dynamic IP address on me (no fixed IP address, even with a premium; They&#8217;ve settled in the XXth century). This would not be very serious except that I host a RAID server [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,13],"tags":[2206,2205,2202,1133,2204,2203,246,2207,2201],"class_list":["post-13644","post","type-post","status-publish","format-standard","hentry","category-internet","category-routers-networks","tag-cname","tag-ddns","tag-diskstation","tag-dns","tag-dynamic","tag-ip-addreess","tag-ipv4","tag-subdomain","tag-synology"],"_links":{"self":[{"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/posts\/13644","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/comments?post=13644"}],"version-history":[{"count":0,"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/posts\/13644\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/media?parent=13644"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/categories?post=13644"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.roumazeilles.net\/news\/en\/wordpress\/wp-json\/wp\/v2\/tags?post=13644"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}