Setting Up a Custom Google Domain on your Github Pages website

Last Updated On 21 Dec 2018 by

This tutorial guides you step by step through setting up a custom Google domain on Github pages website.

Let’s get a domain

If you haven’t already, go and purchase a domain on Google domains - which will likely cost you about $12 a year.

Once ready, navigate to the DNS section and setup the following custom resources records:

An image

This likely won’t work on the first attempt, so go get a coffee refill as propagation of DNS records can take a few seconds to a few hours.

Great, you got more coffee! Now try running the following command in terminal to verify everything is now working:

dig +noall +answer

When the DNS changes are ready, it should ouptup the following:

An image

Create a Github Repo and Setup Public Pages

Now create a new github project if you haven’t already. Then navigate to your repository settings page, under Settings / Options and scroll down to GitHub Pages section.

An image

Set your custom domain and press Save It should validate the setup.

At this point you should be able to check the Enforce HTTPS option.

¡And Voilà!

For more detailed info, follow the official github doc

About The Author

Headshot of Michael Iriarte aka Mika

Hi, I'm Michael aka Mika. I'm a software engineer with years of experience in frontend development. Thank you for visiting I hope you learned something fun today! You can follow me on Twitter, see some of my work on GitHub, or read more about me on my website.