Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm working on a project where people can sign up and have multiple shops for themselves. Let's consider that Mark signed up to our site and created a shop for himself:

markshop.shop.com

Now, mark wants to map a domain called markshop.com to markshop.shop.com.

How do I go about this in Windows Server 2008 R2?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

That would be a simple "CNAME" record in DNS. A CNAME record is an alias of an "A" record. An A record is a host to ip mapping.

So in your case, the following would be true:

A Record would be "Markshop.shop.com" = 192.168.7.7 (just an example) CNAME Record would be "markshop.com" = Markshop.shop.com

Now I will say, typically your main domain (zone) would be an A record, so in this case markshop.com should probably be an A record that points to 192.168.7.7 and then www.markshop.com should alias to markshop.com (CNAME record), but i think you might be able to get away with a CNAME depending on your DNS setup.

share|improve this answer
    
He will, however, also have to tell you that he's using that domain and you'll have to configure that in your server. Otherwise, when you get requests for host "markshop.com", you'll have no way to know you should serve the web pages for "markshop.shop.com". –  David Schwartz Mar 28 '12 at 1:03
    
Good point, so you're basically saying he'll need host headers configured in IIS. –  Eric C. Singer Mar 28 '12 at 13:34
    
thank you . that helped a lot . –  Ali Shokrollahi Mar 28 '12 at 16:40
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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