vote up 2 vote down
star

There's a guide for dummies if you want to point to foo.com or www.foo.com. I'm interested to find out how to point a sub-domain such as abc.foo.com to foo.stackexchange.com in GoDaddy. I'm running my own dedicated server.

CNAME method alone didn't propagate even though I set it up the night before and checked my site the following morning. Adding A record- breaks my whole site and stops "named" service

alt text

alt text

This is what I have in Site Rules. Is it correct? Do I need to point my main site; foo.com and www.foo.com. I'm basically trying to achieve what answers.onstartups.com was able to do.

alt text

1st UPDATE It seems a minor "." added at end of 1bny-se.fogcreek.com solved the forwarding issue. See answers/comments below. It's been a day now and I still don't see abc.foo.com masking foo.stackexchange.com. According to my site rules, my primary domain is what the users are ONLY supposed to see. Am I missing something? Suggestions appreciated.

2nd UPDATE Seems after above changes are in place, you must re-publish the primary domain. Click the "Publish" button under Primary Domain. If you end up losing your admin privileges as I did, follow this instructions or get in touch with customer service and request admin upgrade privileges.

flag

2 Answers

vote up 1 vote down
check

Certain hosting providers require a period/dot at the end of the target address.

So CNAME = whatever.fogcreek.com.

Notice the dot at the end.

link|flag
Thanks Dharmesh for responding to my tweet. I'll try your method. – monocat Jan 23 at 21:42
vote up 2 vote down

You may have forgotten to ask Fog Creek to respond to requests from abc.foo.com:

Now you are done with the registrar, and it's time to setup your stackexchange settings.

Log in as an admin, and add www.site.com and site.com as aliases Once the redirect is active(going to site.com shows up your site), change the primary domain to the domain name you want to use as primary.(http://site.com or http://www.site.com)

The CNAME method works for me.

link|flag
Thanks Anton- I edited the question and added my current site rules. Is it necessary to add the main site; foo.com and www.foo.com when dealing with sub-domains. I'm basically trying to achieve what www.onstartups.com did with their answers.onstartups.com – monocat Jan 23 at 20:45
Your site rules look right to me. If those rules, together with a CNAME (and no A record) don't work, then I can't think of what the problem is. GoDaddy has been remarkably slow at propagating CNAME changes for me, but I don't think it's ever taken longer than over night. In any case, you can check if the CNAME record is working using the command host abc.foo.com (on linux or Mac; I don't know the Win equivalent), which should say "abc.foo.com is an alias for lbny-se.fogcreek.com." – Anton Geraschenko Jan 23 at 21:28
I guess adding a "." at the end of lbny-se.fogcreek.com as you have shown above did the trick. I'm running a Linux Server. Now trying to solve the problem of making sure that the foo.stackexchange.com is masked by abc.foo.com. See comment under Dharmesh's answer. – monocat Jan 23 at 22:49

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.