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.

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
DNS Records.

GitHub page settings

Go to your GitHub page settings and your domain name and save.

Save Domain

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:

Share this:

Related Post

Git Cheat Sheet 2024

Git Cheat Sheet 2024

How to set up a GitHub page?

How to set up a GitHub page?

Enhancing Your Readme on GitHub for Maximum Impact

Enhancing Your Readme on GitHub for Maximum Impact

A Beginner’s Guide to Understanding Github Copilot 2024

A Beginner’s Guide to Understanding Github Copilot 2024