Back to homepage
This tutorial will teach you how to connect your GitHub Pages website to a custom domain
- Register a custom domain. If you don’t have one yet, you can use Freenom to get a free one.
- In Github navigate to the repository you wish to connect to the custom domain.
- Ensure the setting source is selected to something other than none and press the save button.
- Below the source selector, type the domain which you would like to use. I’d go with something like www.example.com or subdomain.example.com
- Press save.
- Now is the time to connect your domain to a DNS proxy such as Cloudflare, if you wish.
- In your domain’s DNS settings, configure the following item.
|Type ||Name ||Value |
|CNAME ||www ||USERNAME.github.io |
|A ||@ ||188.8.131.52 |
|A ||@ ||184.108.40.206 |
|A ||@ ||220.127.116.11 |
|A ||@ ||18.104.22.168 |
- If you’re using a subdomain (for example subdomain.example.com) change www to the subdomain you want.
- Remember to replace USERNAME with the GitHub username of the repository owner.
This page was imported from the old blog with little modification.