• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2997
  • Last Modified:

Setting up a CNAME on IIS 6

Hello all,

I would like to add a CNAME on my IIS 6 but I can't find the panel to make the
necessary changes.
Could somebody please tell me the steps of how to access this?

Thanks
0
nectarios777
Asked:
nectarios777
  • 2
2 Solutions
 
Chris DentPowerShell DeveloperCommented:

Hi there,

A CNAME or Alias is a specific type of DNS Entry. It points a Name to another Name. e.g.:

www.domain.com. CNAME webserver1.domain.com.

This doesn't map across to IIS without a little translation as IIS doesn't really care if the Name entry used is a CNAME or not.

IIS can take an incoming HTTP Request and retrieve content from a specific site based on the Hostname used in the Header. That means that an IIS Server can provide different responses on the same IP Address based on the name used to access the server.

To set a Host Header (name for a site) in IIS you would open up the Properties for the Web Site, select the Web Site Tab, click Advanced and add a new entry.

The entry will contain the IP Address (or All Unassigned), the Port (normally 80) and the Name of the Site, e.g. site1.domain.com. As long as you have an entry in DNS for site1.domain.com (to get it to the IP for the IIS Server) then IIS will respond with the content for the site1.domain.com Web Site.

I hope that all makes sense, don't hesitate to ask if you need clarification or are looking to do something else.

Chris
0
 
nectarios777Author Commented:
Chris,

many thanks for your response. Basically, I want to have my subdomain.mydomain.com point to hello.msn.com.
The 3rd party service asks to setup a CNAME. I was able to do this on my dedicated server using a tool (HSPComplete) but I don't have access to it anymore. So, I'm wondering how can I do this on IIS.
I have tried to create a subdomain and add the headers on it, but still doesn't work.
0
 
Chris DentPowerShell DeveloperCommented:

If subdomain.mydomain.com is already resolving to your IIS Web Server then you could create a Redirect on IIS (not an Alias / CNAME though).

However, you can't do anything at all if the name doesn't resolve. IIS cannot deal with Name Resolution, that must be set in DNS first.

Chris
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now