The easiest way to get Github Pages working with an Alias, AName, A record
I was speaking to a buddy of mine the other day about setting up Github pages to work with a custom domain. There are some good docs from Github on getting this done. However, he struggled and I struggled to get this done before so I am giving you the to the point guide.
So this isn’t post is not on getting Jekyll working or on GitHub pages itself this is a to the point guide on getting your custom domain pointing to your *.github.io site.
- Create or edit the CNAME file that is in your GitHub pages repository. There can only be 1 entry. In my case, this was
- Use the ping command to find out what the IP address is for your *.github.io site.
- Now you are in the money. Head over to whoever is your DNS provider. (btw DNSimple is pretty awesome to use)
- Create an AName, Alias or A record for your site (in my case deonheyns.com) to point to the IP address you got from the ping command.
- Wait for the changes to propagate depending on the TTL you have set.
- Navigate to your site and do the happy dance.