IIS: How to map a domain name to a web site
January 2, 2010
9 comments
This post explains how to map domain names with IIS web site
Assumptions:
- We have IIS hosted on a server with static IP and internet access (:|)
- We own a public domain name (:|) which is to be mapped (:|)
For demo, I am assuming following values
- server IP address : 222.222.222.222
- public domain name to be mapped: map.jyotsna.com
Please note that these values are for demostration purpose only. I, in no way, own these.
To do: For IIS version 7
- Add and ‘A’ record to your DNS settings with value = IP of server. So my “A” record for jyotsna.com has value = 222.222.222.222
- Create a web site in IIS – if needed. For demostration, I am going to use “Default Web Site”
- Select the web site and choose bindings in Actions pane.
- In the Site Bindings dialog box, select the binding for which you want to add a host header and then click Edit or click Add to add a new binding with a host header.
- In the Host name box, type a host header for the site, which in my case is map.jyotsna.com
- Click on OK/ Apply to close all windows. There is NO NEED to restart IIS to reflect the changes.
To do: For IIS version 5.1 till 6
- Add and ‘A’ record to your DNS settings with value = IP of server. So my “A” record for jyotsna.com has value = 222.222.222.222
- Create a web site in IIS – if needed. For demostration, I am going to use “Default Web Site”
- Right click the concerned web site -> properties. In the “Web Site” tab, click on “Advanced” button.

- In “Multiple identities for this Web Site” section, click “Add” button.

- You now need to mention three values

- IP Address – this is IP address of the server. In my case it will be 222.222.222.222
- TCP port – I want this website to be available on map.jyotsna.com irrespective of the actual IIS port assigned to “Default web site”. Hence I am going to specify 80. If I wanted the site to be available on map.jyotsna.com:666, I would have specified 666 as this value.
- Host Header Name – map.jyotsna.com
- Click on OK/ Apply to close all windows. There is NO NEED to restart IIS to reflect the changes.
Related articles:
Categories: IIS

