Join 3,555 readers in helping fund MetaFilter (Hide)


Pointing my domain to a github page
March 1, 2014 1:09 PM   Subscribe

I need help pointing a custom domain at my github page.

I own resistorings.com, registered with Godaddy. I've set up a github page at stevengoldberg.github.io. I want both resistorsings.com and www.resistorsings.com to point to the github site. I've gone through the instructions here, but I can't seem to make it work.

I have a file called CNAME in the root directory of my github repo, which contains only the line "resistorsings.com". My zone file for resistorsings.com has a CNAME entry for www which points to stevengoldberg.github.io.

When I enter "dig www.resistorsings.com +nostats +nocomments +nocmd" in the terminal, I get:
;www.resistorsings.com.		IN	A
www.resistorsings.com.	600	IN	CNAME	stevengoldberg.github.io.
stevengoldberg.github.io. 3600	IN	CNAME	github.map.fastly.net.
github.map.fastly.net.	13	IN	A	199.27.72.133
Which seems right. But www.resistorsings.com gives me a github 404 page.

So what am I doing wrong here? And what's the right way to make resistorsings.com point to github in addition to www? Should I use a 301 redirect?
posted by ludwig_van to Computers & Internet (5 answers total) 3 users marked this as a favorite
 
Your CNAME file isn't uppercase. I think that matters.
posted by gregjones at 1:34 PM on March 1 [1 favorite]


Hm, I renamed cname to CNAME, and now www.resistorsings.com and stevengoldberg.github.io both take me to the Godaddy domain parking page which resides at resistorsings.com. I think this is the behavior I want, if resistorsings.com were pointing at the github page; so what am I still missing to make that happen?
posted by ludwig_van at 1:53 PM on March 1


Yep, like gregjones said, you'll need to make your CNAME file uppercase.

> And what's the right way to make resistorsings.com point to github in addition to www? Should I use a 301 redirect?

If your DNS provider lets you use ALIAS records for apex domains, you can create an ALIAS record to point resistorsings.com to stevengoldberg.github.io. Otherwise, you'll need to create A records to point to 192.30.252.153 and 192.30.252.154. (Source.)

(I work in tech support at GitHub, so if you have questions that might require server-side spelunking, you can email support@github.com and mention Nikki, and I'll poke around some more. I'll be around a computer for another hour or so.)
posted by guybrush_threepwood at 1:56 PM on March 1


I believe you need to set up a branch of your repo named "gh-pages" for this to work?
posted by The Biggest Dreamer at 2:07 PM on March 1


I created the A records and everything looks right now. I think I was getting tripped up because the support page says that using A records isn't the best way to go, but all I can see on GoDaddy's DNS Zone File Editor is a way to create A records and "CNAME (Alias)" records, but I take it an ALIAS record is different.

The Biggest Dreamer, you need a branch named gh-pages if you're making a project page, but you don't if you're making a user page.
posted by ludwig_van at 2:15 PM on March 1


« Older Two laptops can see each other...   |  I've been looking into certain... Newer »

You are not logged in, either login or create an account to post comments