DNS Settings For Github

HDip

New Member
Joined
Apr 15, 2022
Messages
5
Reaction score
0
Hi all
I have created my website via Github.com. I am trying to deploy my site via my Afrihost registered domain. All is configured correctly on Github's side, but I am struggling with the DNS settings for Afrihost. What should the DNS settings look like on Afrihost side?
 
Your website will be username.github.io
What do you mean deploy your site via Afrihost? Are you using Afrihost to host your content, or github.io?
 
Sounds like you need to set CNAME records

eg leno.github.io

www CNAME leno.github.io
Apex/root CNAME leno.github.io

Not sure if you can set apex/root CNAME's with afrihost

Edit: clearer example

eg leno.github.io
domain leno.co.za

www CNAME leno.github.io
leno.co.za. CNAME leno.github.io (or apex/root option, fullstop is important)
 
Your website will be username.github.io
What do you mean deploy your site via Afrihost? Are you using Afrihost to host your content, or github.io?
My website repository sits with Github. But I make use of Afrihost's hosting and I need to change the DNS hosting settings Afrihost (this is what I am struggling with).
 
Sounds like you need to set CNAME records

eg leno.github.io

www CNAME leno.github.io
Apex/root CNAME leno.github.io

Not sure if you can set apex/root CNAME's with afrihost

Edit: clearer example

eg leno.github.io
domain leno.co.za

www CNAME leno.github.io
leno.co.za. CNAME leno.github.io (or apex/root option, fullstop is important)
I did set up both, apex and CNAME records. The CNAME IP address is directed as per your example above (I will double check this). But the A-root record is confusing, because Github provides you with 4 IP addresses (not sure if this might be the problem).
 
You need type A entries on the Afrihost side to:

185.199.108.153
185.199.109.153

In your repo called <account>.github.io you need a file caked CNAME. In that file you need your domain name:
Code:
buffcake69.com

For the repo go to settings -> pages. I see mine is ticked as a GitHub page there and the custom domain name is filled in as well.

If you have another repo called "my-site" with a static site in there and want to access it via

buffcake69.com/my-site

you only need to mark it as a GitHub page site in settings -> pages and no CNAME file or custom domain name details are needed.
 
You need type A entries on the Afrihost side to:

185.199.108.153
185.199.109.153

In your repo called <account>.github.io you need a file caked CNAME. In that file you need your domain name:
Code:
buffcake69.com

For the repo go to settings -> pages. I see mine is ticked as a GitHub page there and the custom domain name is filled in as well.

If you have another repo called "my-site" with a static site in there and want to access it via

buffcake69.com/my-site

you only need to mark it as a GitHub page site in settings -> pages and no CNAME file or custom domain name details are needed.
Thanks for the reply. This is what I read on Github's site as well. I have tried this but I still can't get it to work... The CNAME and A-entries are all correct.
 
Thanks for the reply. This is what I read on Github's site as well. I have tried this but I still can't get it to work... The CNAME and A-entries are all correct.
And your repo settings?
 
My website repository sits with Github. But I make use of Afrihost's hosting and I need to change the DNS hosting settings Afrihost (this is what I am struggling with).

Cname record
 
Top
Sign up to the MyBroadband newsletter
X