The setup is different for domains like example.com
and sub-domains like blog.example.com
.
In case of a sub-domain: blog.example.com
- Go to Domains | Manage Domains in your webpanel
- Locate
blog.example.com
, click Delete in the Actions column - Wait 10 minutes, and then click the DNS link below
example.com
- Add a
CNAME
record:- Name =
blog
- Type =
CNAME
- Value =
yourusername.github.io.
(yes there is a.
at the end!)
- Name =
In case of a domain: example.com
- Go to Domains | Manage Domains in your webpanel
- Locate
example.com
, click Edit in the Actions column and switch to DNS only hosting (it's at the bottom) - Go back to Domains | Manage Domains in your webpanel
- Click the DNS link below
example.com
- Add an
A
record:- Name = (blank, nothing)
- Type =
A
- Value =
185.199.108.153
(GitHub, from this page)
- Add a
CNAME
record:- Name =
www
- Type =
CNAME
- Value =
yourusername.github.io.
(yes there is a.
at the end!)
- Name =
(Yes, you need both the A
and CNAME
records in this case.)
Btw, the only reason I know this is because I did the same thing last weekend. I was quite lost, but the helpful support guys helped me half way, and I figured out the rest. This procedure works for me, I needed both cases so I tested both.