How to configure a custom domain to a GitHub page?
If you have set up your GitHub page and want to add your custom domain, then GitHub also provides that functionality. Set up your GitHub page if you don’t have an idea about the GitHub page. Let’s see how to configure a custom domain to a GitHub page?
I bought my domain from GoDaddy, so my steps are according to that. But that is a very simple process you can do with your domain service provider. Check the below steps.
Table of Contents
Add A records in DNS
Go to your domain service provider’s DNS settings of your domain. GitHub pages have some dedicated IP addresses.
Create A
records point to the below IP addresses.
- 185.199.108.153
- 185.199.109.153
- 185.199.110.153
- 185.199.111.153
GitHub page settings
Go to your GitHub page settings and your domain name and save.
Now your domain will be set up and run on the GitHub page.
There are some other options to set up your domain according to your service provider’s criteria. You can do it with AAAA
record etc. Click here for more information on GitHub doc.
Must Read: