I already tried the three step process:
1) Created a CNAME file in my github repo with the domain name, mydomain.com;
2) Redirected the A Record to 192.30.252.153
and 192.30.252.154
3) CNAME Alias has host "www" pointing to "username.github.io"
But for some reason my mydomain.com is still just the default landing page for new domains and when I go to username.github.io, it just goes to mydomain.com with the same default landing page. Can someone please help? I am registered with domain.com
Additionally, there is a warning message on my Github settings stating,
Domain does not resolve to the GitHub Pages server. For more information, see https://help.github.com/articles/setting-up-a-custom-domain-with-github-pages/.
Any help is very much appreciated.
Related
So I am trying to get a custom domain to work with my github pages user site. I have followed pretty much the standard procedure for doing this as follows: (recommended by github here too: https://help.github.com/articles/setting-up-an-apex-domain-and-www-subdomain/). Note I need both the apex domain (example.com) and the www subdomain (www.example.com) to resolve to my github pages user site at username.github.io (the website itself is a jekyll based blog and I have checked that it compiles successfully before I started this process)
I added an A record to my DNS records at the registrar pointing to all of the four IP addresses provided by Github from the apex domain example.com:
185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153
Next I went in and added a CNAME record for the www sub domain pointing to username.github.io
And then I finally enabled the custom domain example.com under the settings tab of the repository (under Github Pages > Custom Domain), and also enabled the Enforce HTTPS option after it was enabled within about an hour.
I have tried contacting my registrar and they said that everything in the DNS record seem fine and they get the following results:
A records :
example.com. 21460 IN A 185.199.111.153
example.com. 21460 IN A 185.199.109.153
example.com. 21460 IN A 185.199.110.153
example.com. 21460 IN A 185.199.108.153
CNAME :
www.example.com. 7199 IN CNAME username.github.io.
As expected.
But I still get the following error in github (under the settings tab of the repository):
"Domain does not resolve to the GitHub Pages server. For more information, see https://help.github.com/articles/setting-up-a-custom-domain-with-github-pages/."
And when I try to access the site by typing either example.com or www.example.com, the browser redirects to https://example.com/ and I get the error (on Chrome):
ERR_CONNECTION_REFUSED
Note that there is a warning on the documentation by github saying:
Warning: If your domain has HTTPS enforcement enabled, GitHub Pages' servers will not automatically route redirects. You must configure www subdomain and root domain redirects with your domain registrar.
I have no idea how to get around this. I suspect this is the possible cause of the issue. So a solution might be to circumvent this redirection, I just do not know how I would do this.
For anyone stumbling across this. Actually I realized I have outlined the correct method to set this up with Github Pages. And this is in line with what is recommended by Github as of today and works perfectly well. Just make sure you wait for the DNS Propagation to take effect which in some cases might take up to 24hrs. And this is what the problem was in my case.
Github shown me sucessive error message. After several iterations, github is happy with the following :
In Settings > Pages :set up your github page :
(you will have some error-warning message and Enforce HTTPS won't be ticked at first)
On my github repository's root, a CNAME file with the website name (with www):
www.example.com
On my domain registration's DNS :
www 28800 CNAME MYUSERNAME.github.io.
# 21460 A 185.199.111.153
# 21460 A 185.199.109.153
# 21460 A 185.199.110.153
# 21460 A 185.199.108.153
WAIT A DAY, ENJOY OUTDOOR WALK.
The website is ok and in my terminal, a dig command returns :
$dig WWW.example.com +nostats +nocomments +nocmd
;WWW.example.com. IN A
WWW.example.com. 26728 IN CNAME MYUSERNAME.github.io.
MYUSERNAME.github.io. 1527 IN A 185.199.108.153
MYUSERNAME.github.io. 1527 IN A 185.199.111.153
MYUSERNAME.github.io. 1527 IN A 185.199.110.153
MYUSERNAME.github.io. 1527 IN A 185.199.109.153
Tick the "Enforce HTTPS".
Note: Replace example.com and MYUSERNAME by the values relevant to you.
I'm not sure if this question belongs here but because it is a technical question so I'm asking it here. Feel free to move it to any appropriate website of Stack exchange.
My problem is I have created a subdomain successfully on my website through cpanel and also put an index.html file in it to test it. But when I run it in browser it is not showing contents of index.html file. It shows following errors:
DNS address could not be found and ERR_NAME_NOT_RESOLVED errors. Can someone please tell me how to resolve this problem?
You must be missing A record pointing to your sub domain in your domain panel.
Record Point to TTL
A sub 300
Please check the DNS servers for your domain. You might be using external DNS servers. When you create a subdomain on cPanel, a DNS entry is created in the DNS zone for that subdomain pointing to your server ip. If your domain uses external DNS servers then those servers will be queried to find the ip address for that subdomain. In this case you should manually edit your DNS zone and add an A record for that subdomain to point to your server's ip).
Thanks for all the answers. Here is how solved my problem. The problem was that I have purchased a hosting with one domain name. I also have another domain purchase but there is no hostng on it. I had pointed the second domain to first domain which also has hosting support. So what I was doing is I was creating subdomain on second one on the first domain. But it was not recognising it and showing DNS problem. So I made an entry A record entry in the second domain about the subdomain which I wanted to create on it. And then in 5 minutes DNS was updated and issue was resolved.
After adding the subdomain, go to the DNS editor of the domain and add a CNAME record for the subdomain.
For example:
NAME TYPE VALUE
--------------------------------------------------
subdomain.example.com. CNAME example.com.
I have two hosting accounts (Personal one and a work one). I am doing some testing and would like to create a subdomain of a work domain (manage.domain.com) and host it on my personal account. Currently, my personal host is through 1and1 and is dedicated while the work one is shared with GoDaddy.
Work
I have gone into go daddy and created the subdomain. I have also added DNS records such as A, AAAA AND NS (i did not record a CNAME). I have noticed that if is type manage.domain.com it is redirecting to my personal server. However, it is directing to the blank admin page of the root of the server (which is maintained using Plesk).
Personal
Using Plesk I added the website (domain.com) and created the subdomain (manage.domain.com). I have also updated the websites hosting access using Plesk and assigned it the default values of my personal account. Using Plesk I also set the subdomain to the particular location of the files I want to test. However, I cannot get my server to recognize the address and redirect it to the proper location.
Any help is greatly appreciated!
J
You can just create:
in personal account domain(not subdomain) manage.domain.com
on domain.com add DNS record of type A, name "manage" and IP address of personal hosting:
After that "manage.domain.com" will resolving to hosting of your personal account and can be accessed because such domain exists.
I figured it out
What i did above was correct expect do not change the name servers on the work DNS(godaddy).
Add the website to plesk - it will give you an error about not being able to control the DNS settings which you have already adjusted on the original server (godaddy)
Add a subdomain of the website.
*** Ensure the subdomain is pointed to the correct folder within your server
Done
Im trying to have a custom domain for my github hosted blog, i changed the CNAME file to have my custom domain, head to my hostgator account, but i don't have access to the Cpanel, only a domain management dashboard where it only has a name server fields to edit, i suppose i need to change my DNS to the following:*
192.30.252.153
192.30.252.154
CNAME username.github.io
*
However there is no way i can do that on Hostgator name server only dashboard.
where does the CNAME username.github.io goes ?
Screen Shot to hostgator domain management dashboard
I contacted Hostgator and asked them to edit my DNS information from their side and they were helpful and add the IP address and CNAME for me.
Problem Solved
I own a website(A) and used blogger platform in web domain.Last month blog get deleted and i couldn't redirect it(A) into another new blog.As it is(A) domain only(No hosting), Can i redirect that domain(A) into my another website (B) which has Hosting in it(B) ??
You could change your DNS settings for your domain (of website A) to point to the IP address of your server for website B or also simply use a CNAME record which would point to your FQDN for website B, for example: www.websiteA.com CNAME www.websiteB.com.
There may be further configuration required for your host so they know to serve your website from requests to websiteA.com.
Note: This will continue to display as www.websiteA.com/page in your browser and not do a true redirect to www.websiteB.com/page.