{"id":140,"date":"2013-11-10T19:49:14","date_gmt":"2013-11-10T19:49:14","guid":{"rendered":"https:\/\/ahorseforonebin.co.uk\/?p=140"},"modified":"2013-11-13T19:25:36","modified_gmt":"2013-11-13T19:25:36","slug":"configuring-a-self-hosted-domain-on-a-synology-diskstation","status":"publish","type":"post","link":"https:\/\/ahorseforonebin.co.uk\/?p=140","title":{"rendered":"hosting a domain on a synology diskstation"},"content":{"rendered":"<p>There are two environments that need attention, when hosting a domain on a Synology Diskstation:<\/p>\n<ol>\n<li>Virtual Host (which organises the location of the files that your website is built out of), and<\/li>\n<li>DNS Server (which controls the Zone File that points web browsers at your website)<\/li>\n<\/ol>\n<p>First of all, to configure your Virtual Host for your new website (which we will call example.co.uk):<\/p>\n<p>Web Services -&gt; Web Applications -&gt;\u00a0Virtual Host:<\/p>\n<ul>\n<li>subfolder = example (without TLD suffix)<\/li>\n<li>hostname = example.co.uk (with full TLD suffix)<\/li>\n<li>OK<\/li>\n<\/ul>\n<p>Now to configure your DNS Server and the Zone File:<\/p>\n<p>Downloaded Packages -&gt; DNS Server -&gt; Zones:<\/p>\n<ul>\n<li>Create Master Zone\n<ul>\n<li>Domain Type: Forward Zone<\/li>\n<li>Domain Name: example.co.uk<\/li>\n<li>Master DNS Server: static IP address<\/li>\n<li>Serial format: Integer<\/li>\n<\/ul>\n<ul>\n<li>OK<\/li>\n<\/ul>\n<\/li>\n<li>Edit Resource Record\n<ul>\n<li>Create:<\/li>\n<li>MX Type<\/li>\n<li>Name: mx<\/li>\n<li>TTL: default<\/li>\n<li>Priority: 10<\/li>\n<li>Host\/domain: example.co.uk<\/li>\n<\/ul>\n<\/li>\n<li>Create:\n<ul>\n<li>MX Type<\/li>\n<li>Name: (leave blank this time)<\/li>\n<li>TTL: default<\/li>\n<li>Priority: 20<\/li>\n<li>Host\/domain: example.co.uk<\/li>\n<\/ul>\n<\/li>\n<li>Create:\n<ul>\n<li>CNAME<\/li>\n<li>Name: (leave blank)<\/li>\n<li>TTL: default<\/li>\n<li>Canonical Name:<\/li>\n<li>ns.example.co.uk<\/li>\n<\/ul>\n<\/li>\n<li>Create:\n<ul>\n<li>A Type<\/li>\n<li>Name: (leave blank)<\/li>\n<li>TTL: default<\/li>\n<li>IP address: static IP address<\/li>\n<\/ul>\n<\/li>\n<li>Finish<\/li>\n<\/ul>\n<p>And you&#8217;re done.<\/p>\n<p>Email config is a separate thing. You need to <a title=\"configuring email on a self-hosted domain\" href=\"https:\/\/ahorseforonebin.co.uk\/?p=67\" target=\"_blank\">follow these instructions<\/a> for that.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are two environments that need attention, when hosting a domain on a Synology Diskstation: Virtual Host (which organises the location of the files that your website is built out of), and DNS Server (which controls the Zone File that points web browsers at your website) First of all, to \u2026 <a class=\"continue-reading-link\" href=\"https:\/\/ahorseforonebin.co.uk\/?p=140\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-140","post","type-post","status-publish","format-standard","hentry","category-admin"],"_links":{"self":[{"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=140"}],"version-history":[{"count":8,"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/140\/revisions"}],"predecessor-version":[{"id":152,"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/140\/revisions\/152"}],"wp:attachment":[{"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahorseforonebin.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}