You would think it would be easy to find this information, but none of the Github or Gandi documentation is clear so I have recorded the required steps here.
Create the following A records:
@ 1800 IN A 185.199.108.153
@ 1800 IN A 185.199.109.153
@ 1800 IN A 185.199.110.153
@ 1800 IN A 185.199.111.153
Remove the Gandi parking page A record:
@ 10800 IN A 217.70.184.38
Create the following CNAME record:
www 10800 IN CNAME [github-username].github.io.
Remove the Gandi parking page CNAME record:
www 1800 IN CNAME webredir.vip.gandi.net.
Finally, in your Github repo create a file called CNAME
which contains your Gandi domain name, e.g. [my-domain].io
.
After following these wonderfully-simple instructions, my domain (benj.in) is directing to GH Page's 404 page, so it's getting something in the right direction but it's still missing a piece. Any ideas?
Update: Figured it out. Two mistakes: 1) my CNAME file was only in main, not over in gh-pages, 2) the file contained only
benj.in
, but needed to bewww.benj.in