Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Domain host records for github and namecheap

Tags:

web-hosting

I have a custom domain with namecheap that I want to redirect to my github page which is at myuser.github.io.

My host records at namecheap have '@' and 'www' A records with an IP of 192.30.252.153. At the root of my github page (in the repo) I have a cname record with mydomain.com. in the file. When I browse to my custom domain in a web browser I get a message that the github page cannot be found.

Ideas? I found a few blog posts about setup, but none of the options worked for me.

like image 526
Mark Locklear Avatar asked Dec 04 '22 07:12

Mark Locklear


2 Answers

Namecheap has changed things. This is what I did: My Namecheap Configuration

This is what is working for me.

In my pages repository, the CNAME is just:

phillipamann.com

I hope that helps.

like image 156
PhillipAMann Avatar answered Dec 31 '22 01:12

PhillipAMann


To support the improved Github Pages, set your records up like this:

HOST NAME   IP ADDRESS              RECORD TYPE     TTL
@           192.30.252.153          A (Address)     1800
www         <username>.github.io    CNAME (Alias)   1800

Then, fill out one row under SUB-DOMAIN SETTINGS:

HOST NAME   IP ADDRESS              RECORD TYPE     TTL
@           192.30.252.154          A (Address)     1800

More information here: http://davidensinger.com/2013/03/setting-the-dns-for-github-pages-on-namecheap/

like image 30
MLQ Avatar answered Dec 31 '22 01:12

MLQ