Custom domain for github pages provide free blog platform for geeks and hackers. One of the features include custom domain, by default the blog domain is after you create a repository with at your github account.

To use custom domain, first you need to have a domain, either from or, in this post, I will use

First, create a file CNAME. Write the custom domain in the file, in my case is Then commit and push to your repository.

Then, login into your domain management page, add two A records to points to github pages’ IP First record is point from naked domain, in my case is, second record is point from www subdomain. After setup, wait few minutes to let the DNS take effect.

You can have a look at my repository at here.

github pages custom domain with

Filed under github-page


Find Me