How To add a Custom Domain On Github Pages

Hosting on Github – How To add a Custom Domain On Github Pages


How To add a Custom Domain On Github Pages

Hosting on Github

In this video, I am going to show How to configure custom URL domain name to you website which is hosted on Github Pages.

The Domain name used for this Demo:

Github custom domain IPs List :
185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153

The video on How to Host a Website On Github –

How to Get Started with Git and Github –

Steps for adding custom domain:

1. Add A record in the DNS Zone Records On the hosting service on which you purchase your domain (Like godaddy, bluehost, 1and1 etc). Go to your domain settings and click on ‘Manage Domain’. Now go to DNS Zone File Management and add an A record with Github custom domain IPs List addresses.
example
Host: @
Points to: 185.199.108.153

Host: @
Points to: 185.199.109.153

Host: @
Points to: 185.199.110.153

Host: @
Points to: 185.199.111.153

2. Add CNAME file to the repository. Go to the repository, click on ‘New File’, Give the Name of file as CNAME without any spaces in capital. On the first line on the CNAMe file add your domain name like linuxforlife.com.
We can host a static HTML website on Github. This method can be used to host other Html websites also like ReactJs, AngularJS, Bootstrap based websites also. It is really simple and you can have a website hosted on Github in few minutes. You can Publish and share your own website without any cost with GitHub.

★★★Top Online Courses From ProgrammingKnowledge ★★★
Python Programming Course ➡️ ⚫️
Java Programming Course ➡️ ⚫️
Bash Shell Scripting Course ➡️ ⚫️
Linux Command Line Tutorials ➡️ ⚫️
C Programming Course ➡️ ⚫️
C++ Programming Course ➡️ ⚫️
PHP Programming Course ➡️ ⚫️
Android Development Course ➡️ ⚫️
C# Programming Course ➡️ ⚫️
JavaFx Programming Course ➡️ ⚫️
NodeJs Programming Course ➡️ ⚫️
Jenkins Course For Developers and DevOps ➡️ ⚫️
Scala Programming Tutorial Course ➡️ ⚫️
Bootstrap Responsive Web Design Tutorial ➡️ ⚫️
MongoDB Tutorial Course ➡️ ⚫️
QT C++ GUI Tutorial For Beginners ➡️

★★★ Online Courses to learn ★★★
Get 2 FREE Months of Unlimited Classes from skillshare –
Data Science – |
Machine Learning – |
Artificial Intelligence – |
MERN Stack E-Degree Program – |
DevOps E-degree – |
Data Analytics with R – |
AWS Certification Training – |
Projects in Java – |
Machine Learning With TensorFlow – |
Angular 8 – Complete Essential Guide –
Kotlin Android Development Masterclass –
Learn iOS Programming Building Advance Projects –

★★★ Follow ★★★
My Website –

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!

you search:

Hosting on Github

How To add a Custom Domain On Github Pages

24 thoughts on “Hosting on Github – How To add a Custom Domain On Github Pages

  1. Hi! Could you maybe help me?
    I did everything you said, I added the four different IPs and the CNAME file, but when i search for the link it says it can't find the IP address connected to the server. Do you know what the issue could be?

Leave a Reply

Your email address will not be published. Required fields are marked *