How to Custom Domain to Github Page
Before following this guide, please make sure you have :
* Account and repository page on github. This repository page is what will be customized on your domain.
1. Login to Github
To login to Github, you can access https://github.com/login and please enter your username and password.
2. Selecting the Github/Repository Page
After you have successfully logged in, please select the github page or repository that you want to do a custom domain. As a reminder that the custom domain that will be done this time is a custom domain for the Github page. Not for the Github URL
3. Customizing the Github Page Domain
Then click the Menu Settings tab to customize the domain.
Next, please find the Github Pages section. If the custom domain section appears immediately, please go directly to the next step. If it does not appear, please pay attention to the Source section then select None
After that, select the master branch.
Wait a minute then the Custom Domain section will appear. In this section, please enter the domain name that will be used. Later this domain name will be custom domain to the repository URL. The repository URL / github page that will be used when setting to DNS on the domain. Please click Save and put a check mark on Enforce HTTPS.
4. Configuring DNS on a Domain
Now please configure DNS in the client area. Please login to the Client area via https://billing.exabytes.co.id/ select Domains, then Manage DNS. Select the Domain that will be customized, then click Edit Zone
NOTED! Please make sure before configuring DNS, the Nameservers are changed to default or use ns1.idcloudhosting.com and ns2.idcloudhosting.com.
For DNS settings that you must change are the A record and CNAME record configurations.
A Record
Please add DNS A record. In the Host Name section you can fill in @, TTL 14440, Type A and in the Value Address section please add the following IP Addresses one by one.
185.199.109.153
185.199.108.153
185.199.110.153
185.199.111.153
If so, click Save Changes.
CNAME Record
Next, for the DNS configuration you have to add is the CNAME record. In the Host Name section please write down www, TTL 14440, Type CNAME. Then in the Value Address please fill in the URL of your repository / Github page. If so, click Save Changes.
5. Custom Domain ke Halaman Github Berhasil
If all the steps are done, please wait for the domain propagation period to finish around 1×24 hours.