Setup Google Domains & Github Pages

Zack Hoherchak
Subjective Developer
Jul 18, 2019

I have been looking for a GoDaddy alternative for some time (they constantly try to sell me things I don’t need at the time of checkout), so when Google dropped its domain hosting I jumped ship fairly quickly. Google Domains paired with GitHub pages is a very inexpensive way to build a website for business, projects, blogs, etc.

Google Settings

google domains listview
1. Click the DNS settings icon
google domains dns
2. Setup The A Records
Addresses
185.199.108.153
185.199.109.153
185.199.110.153
185.199.111.153
google domains cname
3. Setup the CNAME

Github Settings

github cname settings
1. Create the CNAME file
my cname
The CNAME file just needs to contain your domain name:
github settings
2. Custom Domain Settings
github pages
Navigate to the repository settings.
github pages deployed
Check the “Enforce HTTPS” box and save your custom domain name. Github now automagically sets up HTTPS for you as well (using letsencrypt behind the scenes).

You’re Done!

Github may display a yellow warning message, but please note all of these changes could take up to 48 hours to take place. If you still see a warning message in your github settings after 48 hours try removing the custom domain, saving, and then re-applying it.

buy me a coffee
Zack is creating apps and content! (buymeacoffee.com)

--

--