Skip to content

Github Pages Custom DNS Gotcha

Brian Takita
Authors:Brian Takita
Posted on:September 5, 2016

Fixing a DNS-related 404 error with Github Pages.

I set up using Github Pages to

To set up the DNS, I followed the official instructions and github pages with namecheap.

I created the CNAME file with:

and set up the DNS on Namecheap.

However, I got the 404 page on github.

So I ran

$ dig +nostats +nocomments +nocmd

; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> +nostats +nocomments +nocmd
;; global options: +cmd
;       IN  A  1627  IN  A

$ dig +nostats +nocomments +nocmd

; <<>> DiG 9.8.4-rpz2+rl005.12-P1 <<>> +nostats +nocomments +nocmd
;; global options: +cmd
;       IN  A  1800  IN  CNAME    2163  IN  CNAME  29  IN  A

What's this It looks like it related to github pages routing.

Anyways, it remained for a few minutes and then went away.

Some likely culprits are browser cache, some sort of propagation time in the Github platform, or something else entirely.

I don't think it was a browser cache because this was the first time I visited being routed to github pages. That leaves it being a propagation time issue or something else. While I believe it was propagation time, I'm not sure.

I also am just going to move on and leave it at that. Please comment if you run into the same issue or if you can confirm the issue.