Setting Up a GoDaddy Domain Name with GitHub

I wanted to try using GitHub’s Pages feature to host my website. Turns out it was very simple to do, and the best part is it’s free!

Here’s a tutorial for setting up a GoDaddy domain name with this feature.

Step 1: Register for a domain name

Go to http://www.godaddy.com/ and purchase a domain name (e.g. mycowsworld.com)

This reserves a name that people will use to access your website. Now you’ll need a place to store the files for your website.

Step 2: Create a GitHub account

Go to https://github.com and sign up for an account.

Step 3: Create a GitHub repository

Follow the instructions here (scroll down). This creates a repository where you will store your website files.

Follow the instructions here to connect your domain name (e.g. www.mycowsworld.com) to the GitHub repository.

Step 5: Configure DNS settings on GoDaddy

  1. Log in to GoDaddy.com
  2. Click My Account at the top of the screen
  3. In the DOMAINS pane, expand the section (click the + button) and click Manage for the desired domain name.
  4. Under the Settings tab -> Nameservers, click Manage
  5. Ensure that the Setup Type is set to Standard and save the changes. If you do make changes, note that it may take some time for the changes to propagate.
  6. Under the DNS Zone File tab, click Add Record
  7. Select the CNAME Record Type
  8. Under Host, enter in your www
  9. Under Points to, enter in the URL of the GitHub repository (e.g. username.github.io)
  10. Click Finish

See this page for more information.

It will take some time for the changes to get pushed out, but once that happens, www.URL.com should take you to your GitHub page.

Step 6: Redirect URL.com to www.URL.com

  1. Back in the GoDaddy page under the Settings tab -> Forwarding, click Manage under Domain.
  2. Click Add Domain Forwarding
  3. Under Forward To, set it to the desired webpage (e.g. http://www.mycowsworld.com)
  4. Under Redirect Type, set it to 301 Permanent
  5. Under Forward Settings, select Forward Only
  6. Check the Update my nameservers and DNS Settings to support this change
  7. Click Add

References