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:


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?


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" = (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 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.

| 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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