Wondering how to set up a custom domain name for your GitHub Pages? Keep reading. GitHub Pages is another service provider which allows anyone to set up a website for his or her project and or for an organization in addition to hosting it directly in the GitHub Pages repository and too with a custom domain use support. And its known that a lot of people are constantly looking for better services to use when it comes to setting up their sites due to the different features offered by the different providers for example the ability to use a custom domain name, custom email addresses, custom 404 error pages, multiple additional pages and many others.
When I wrote this post about using a custom domain name on Blogger, many GitHub pages users and who double as part of my readers base asked me to share a post about how one can use a custom domain name on a GitHub pages hosted website and which is why I am sharing this out so that any one who might be searching for the same tutorial can be take advantage of it so as to apply the same known when it comes to configuring his or her website hosted on GitHub Pages and below we get started.
How To Get Started With GitHub Pages
Getting started with the above service provider means visiting their website and choosing either to use an organization or project page which comes in form of example.github.io and once you are done with the above, the next step is configuring your DNS.
How To Set Up Your Domain DNS.
Setting the above is simple provided you have a domain name. You can visit your trusted domain name provider or even take up a free domain name or use a coupon code, buy your preferred domain name and make sure that its up. With your domain name in place, you will need to configure your C Name and A records just like you see below.
C Name Set Up.
Log in to your domain manager, go to DNS under manage domain in most cases and from the drop down menu under choose records, select C Name. Enter your GitHub pages sub-domain for example username1.github.io and move to choosing the next record.
A Record Set Up.
Just like in the C Name above, choose A record this time and enter 188.8.131.52, create another A Record and enter 184.108.40.206.
Save settings and wait for your domain DNS to propagate. The time may differ ranging from provider to provider and may not go beyond 48 hours in most cases. Once the propagation is done, your custom domain name will be attached and showing on your GitHub pages sub domain.
Liked this article or found it helpful? Share it with your friends using the social share buttons below and or post a comment to let us know your feedback or any addition using the comment form below..