Custom subdomain with project page hosted on Github pages
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
add a comment |
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
add a comment |
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
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
dns subdomain github-pages cname
edited Nov 23 '18 at 16:34
alecive
asked Nov 23 '18 at 16:27
alecivealecive
7210
7210
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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/
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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/
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
add a comment |
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/
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
add a comment |
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/
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/
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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