How to set up DNS records on gandi.net to use a custom domain on Github Pages
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 22.214.171.124 @ 1800 IN A 126.96.36.199 @ 1800 IN A 188.8.131.52 @ 1800 IN A 184.108.40.206
Remove the Gandi parking page A record:
@ 10800 IN A 220.127.116.11
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.