Custom subdomain with project page hosted on Github pages












0















I have already successfully set up a GoDaddy subdomain to point to my personal gh-pages website. This means that my username.github.io webpage is pointing to subdomain.domain.com.



As a consequence of this, all the project gh-pages on my github account are changed accordingly, e.g. a page on repository test-project (which would have been previously hosted at username.github.io/test-project) now is hosted at subdomain.domain.com/test-project.



I would now like to set up my GoDaddy DNS manager in such a way that my test-project gh-page points to a second subdomain, for example project.domain.com.



Now, I know there are plenty of similar questions on stackoverflow, but none of them seems to be solving my specific case. My problem is that I don't know what to add to the CNAME record on GoDaddy. I've tried with both subdomain.domain.com/test-project and username.github.io/test-project , but none of them seems to be working! In particular, if I put username.github.io/test-project, it returns the following error:




Enter either @ or a valid host name such as: "subdomain.domain.tld"




UPDATE
I've solved by following this Subdomain of website for Github pages project and having my subdomain CNAME to point to username.github.io. (notice the . at the end). I will do it for any other future subdomain.



Now my question becomes: what does the . do? What does it mean? It is not very clear to me.










share|improve this question





























    0















    I have already successfully set up a GoDaddy subdomain to point to my personal gh-pages website. This means that my username.github.io webpage is pointing to subdomain.domain.com.



    As a consequence of this, all the project gh-pages on my github account are changed accordingly, e.g. a page on repository test-project (which would have been previously hosted at username.github.io/test-project) now is hosted at subdomain.domain.com/test-project.



    I would now like to set up my GoDaddy DNS manager in such a way that my test-project gh-page points to a second subdomain, for example project.domain.com.



    Now, I know there are plenty of similar questions on stackoverflow, but none of them seems to be solving my specific case. My problem is that I don't know what to add to the CNAME record on GoDaddy. I've tried with both subdomain.domain.com/test-project and username.github.io/test-project , but none of them seems to be working! In particular, if I put username.github.io/test-project, it returns the following error:




    Enter either @ or a valid host name such as: "subdomain.domain.tld"




    UPDATE
    I've solved by following this Subdomain of website for Github pages project and having my subdomain CNAME to point to username.github.io. (notice the . at the end). I will do it for any other future subdomain.



    Now my question becomes: what does the . do? What does it mean? It is not very clear to me.










    share|improve this question



























      0












      0








      0








      I have already successfully set up a GoDaddy subdomain to point to my personal gh-pages website. This means that my username.github.io webpage is pointing to subdomain.domain.com.



      As a consequence of this, all the project gh-pages on my github account are changed accordingly, e.g. a page on repository test-project (which would have been previously hosted at username.github.io/test-project) now is hosted at subdomain.domain.com/test-project.



      I would now like to set up my GoDaddy DNS manager in such a way that my test-project gh-page points to a second subdomain, for example project.domain.com.



      Now, I know there are plenty of similar questions on stackoverflow, but none of them seems to be solving my specific case. My problem is that I don't know what to add to the CNAME record on GoDaddy. I've tried with both subdomain.domain.com/test-project and username.github.io/test-project , but none of them seems to be working! In particular, if I put username.github.io/test-project, it returns the following error:




      Enter either @ or a valid host name such as: "subdomain.domain.tld"




      UPDATE
      I've solved by following this Subdomain of website for Github pages project and having my subdomain CNAME to point to username.github.io. (notice the . at the end). I will do it for any other future subdomain.



      Now my question becomes: what does the . do? What does it mean? It is not very clear to me.










      share|improve this question
















      I have already successfully set up a GoDaddy subdomain to point to my personal gh-pages website. This means that my username.github.io webpage is pointing to subdomain.domain.com.



      As a consequence of this, all the project gh-pages on my github account are changed accordingly, e.g. a page on repository test-project (which would have been previously hosted at username.github.io/test-project) now is hosted at subdomain.domain.com/test-project.



      I would now like to set up my GoDaddy DNS manager in such a way that my test-project gh-page points to a second subdomain, for example project.domain.com.



      Now, I know there are plenty of similar questions on stackoverflow, but none of them seems to be solving my specific case. My problem is that I don't know what to add to the CNAME record on GoDaddy. I've tried with both subdomain.domain.com/test-project and username.github.io/test-project , but none of them seems to be working! In particular, if I put username.github.io/test-project, it returns the following error:




      Enter either @ or a valid host name such as: "subdomain.domain.tld"




      UPDATE
      I've solved by following this Subdomain of website for Github pages project and having my subdomain CNAME to point to username.github.io. (notice the . at the end). I will do it for any other future subdomain.



      Now my question becomes: what does the . do? What does it mean? It is not very clear to me.







      dns subdomain github-pages cname






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 23 '18 at 16:34







      alecive

















      asked Nov 23 '18 at 16:27









      alecivealecive

      7210




      7210
























          1 Answer
          1






          active

          oldest

          votes


















          1














          The trailing dot at the end is as per RFC defined for fully qualified domain name.



          So actually every domain ends with a trailing dot internally. You can actually check this for any website just add a trailing dot in the domain name you will still get the same page. eg.
          https://stackoverflow.com./questions/53450113/custom-subdomain-with-project-page-hosted-on-github-pages



          So when you make a dns request for domain.com, the browsers stub resolver actually makes a DNS query for domain.com. to the DNS server.



          Hop this helps/






          share|improve this answer
























          • Thanks for the info. Does that mean that if I used username.github.io (without the dot), it would have worked anyway?

            – alecive
            Nov 29 '18 at 15:15






          • 1





            It depends on the provider where you entering this info. I guess for github pages subdomain you have to use the trailing dot.

            – mdeora
            Nov 29 '18 at 15:24











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53450113%2fcustom-subdomain-with-project-page-hosted-on-github-pages%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          The trailing dot at the end is as per RFC defined for fully qualified domain name.



          So actually every domain ends with a trailing dot internally. You can actually check this for any website just add a trailing dot in the domain name you will still get the same page. eg.
          https://stackoverflow.com./questions/53450113/custom-subdomain-with-project-page-hosted-on-github-pages



          So when you make a dns request for domain.com, the browsers stub resolver actually makes a DNS query for domain.com. to the DNS server.



          Hop this helps/






          share|improve this answer
























          • Thanks for the info. Does that mean that if I used username.github.io (without the dot), it would have worked anyway?

            – alecive
            Nov 29 '18 at 15:15






          • 1





            It depends on the provider where you entering this info. I guess for github pages subdomain you have to use the trailing dot.

            – mdeora
            Nov 29 '18 at 15:24
















          1














          The trailing dot at the end is as per RFC defined for fully qualified domain name.



          So actually every domain ends with a trailing dot internally. You can actually check this for any website just add a trailing dot in the domain name you will still get the same page. eg.
          https://stackoverflow.com./questions/53450113/custom-subdomain-with-project-page-hosted-on-github-pages



          So when you make a dns request for domain.com, the browsers stub resolver actually makes a DNS query for domain.com. to the DNS server.



          Hop this helps/






          share|improve this answer
























          • Thanks for the info. Does that mean that if I used username.github.io (without the dot), it would have worked anyway?

            – alecive
            Nov 29 '18 at 15:15






          • 1





            It depends on the provider where you entering this info. I guess for github pages subdomain you have to use the trailing dot.

            – mdeora
            Nov 29 '18 at 15:24














          1












          1








          1







          The trailing dot at the end is as per RFC defined for fully qualified domain name.



          So actually every domain ends with a trailing dot internally. You can actually check this for any website just add a trailing dot in the domain name you will still get the same page. eg.
          https://stackoverflow.com./questions/53450113/custom-subdomain-with-project-page-hosted-on-github-pages



          So when you make a dns request for domain.com, the browsers stub resolver actually makes a DNS query for domain.com. to the DNS server.



          Hop this helps/






          share|improve this answer













          The trailing dot at the end is as per RFC defined for fully qualified domain name.



          So actually every domain ends with a trailing dot internally. You can actually check this for any website just add a trailing dot in the domain name you will still get the same page. eg.
          https://stackoverflow.com./questions/53450113/custom-subdomain-with-project-page-hosted-on-github-pages



          So when you make a dns request for domain.com, the browsers stub resolver actually makes a DNS query for domain.com. to the DNS server.



          Hop this helps/







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 28 '18 at 12:47









          mdeoramdeora

          1,6701915




          1,6701915













          • Thanks for the info. Does that mean that if I used username.github.io (without the dot), it would have worked anyway?

            – alecive
            Nov 29 '18 at 15:15






          • 1





            It depends on the provider where you entering this info. I guess for github pages subdomain you have to use the trailing dot.

            – mdeora
            Nov 29 '18 at 15:24



















          • Thanks for the info. Does that mean that if I used username.github.io (without the dot), it would have worked anyway?

            – alecive
            Nov 29 '18 at 15:15






          • 1





            It depends on the provider where you entering this info. I guess for github pages subdomain you have to use the trailing dot.

            – mdeora
            Nov 29 '18 at 15:24

















          Thanks for the info. Does that mean that if I used username.github.io (without the dot), it would have worked anyway?

          – alecive
          Nov 29 '18 at 15:15





          Thanks for the info. Does that mean that if I used username.github.io (without the dot), it would have worked anyway?

          – alecive
          Nov 29 '18 at 15:15




          1




          1





          It depends on the provider where you entering this info. I guess for github pages subdomain you have to use the trailing dot.

          – mdeora
          Nov 29 '18 at 15:24





          It depends on the provider where you entering this info. I guess for github pages subdomain you have to use the trailing dot.

          – mdeora
          Nov 29 '18 at 15:24




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53450113%2fcustom-subdomain-with-project-page-hosted-on-github-pages%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Wiesbaden

          Marschland

          Dieringhausen