How to use Godaddy Domain with Github Pages | Arijit Sen

How to use Godaddy Domain with Github Pages

Congrats, so you’ve finally created a personal website using github pages and now want a custom domain with it? Fear not it won’t take much time. Just follow the few basic steps.

Note: This post will be later merged or referred to the Making a Blog with Github in 1 hour tutorial.

So, let’ get started:

  1. Buy a domain on GoDaddy.

  2. Go to your GitHub pages repository and click on the settings icon located in the upper righthand corner.

Github settings

  1. In the setting’s page, scroll down and then add and save your custom domain in the field provided (www.yourwebsitename.com)

  2. Check your root folder .github.io/. There should be a CNAME File created with the url. If not create a CNAME File (Filename: CNAME no extensions) and add your url to it. Commit the changes.

  3. Go to your GoDaddy account and click on the Domains tab. Manage DNS dropdown menu.

Godddy

  1. Within the DNS management page you will need to make three changes:
  • In the Type “A” row update the IP address to: 192.30.252.153 (this will point your custom domain to GitHub’s server)
  • In the CNAME row with Name “www” input your gh-pages website (username.github.io)
  • At the bottom click the “ADD” button and make another Type “A” row with a different IP address of: 192.30.252.154 (don’t worry when you leave the page it will alphabetize the types)

gooddy

  1. Save the new DNS settings.

  2. DNS Changes takes a few minutes of time after that your site should be available in www.yourwebsitename.com

I hope it helps.

Regards, Arijit Sen

Written on May 28, 2018