Custom Domain for your Github pages

Custom Domain for your Github pages

Yes, You can add a custom domain name for your Github page. You just need some basic knowledge of git and domain configuration.

Photo by Corinne Kutz on Unsplash

Prerequisites:

1.You should have your own GitHub page, If not then this article might help you.

2. You have your own custom domain name purchased and have access to domain configuration.

1. CNAME

Before start, I assume you have your Github page up & running.

First, you need to create a new file in your repository as CNAME then add your domain/subdomain name & commit.

Github CNAME

2. Configure DNS

Now go to your Configure DNS section of your DNS provider, You need to add two “@” type A records that point to the GitHub IP's

185.199.108.153  
185.199.109.153  
185.199.110.153  
185.199.111.153

and one “www” CNAME record that points to your username.github.io URL.

Done! You did it! 🥳🍻

For detailed information about the custom domain for Github, you can visit this article.

Heads Up: I am working on one of the cool Chrome extensions which helps to format your code easily & it’s superfast It can format your code within milliseconds. on top of it, it’s completely free for use. So go & hit that Add to Chrome Button. https://chrome.google.com/webstore/detail/code-formatter/njpgcnaadikbannefjibknjopmogeidm

[How to create & deploy the github.io page for free
Yes, you read it right, now you can create a Github page & host it for free. Whether you want to deploy your portfolio…medium.com](https://medium.com/@akashbijwe/how-to-create-deploy-github-io-page-for-free-9e672c8b12d2 "medium.com/@akashbijwe/how-to-create-deploy..")

[How to create a Github profile readme
Github recently released GitHub profile readme feature where user can create a customized profile README and show it on…medium.com](https://medium.com/@akashbijwe/how-to-create-a-github-profile-readme-7b33a0cc7ef8 "medium.com/@akashbijwe/how-to-create-a-gith..")