Home > IIS > IIS: How to map a domain name to a web site

IIS: How to map a domain name to a web site

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

  1. 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
  2. Create a web site in IIS – if needed. For demostration, I am going to use “Default Web Site”
  3. Select the web site and choose bindings in Actions pane.
  4. 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.
  5. In the Host name box, type a host header for the site, which in my case is map.jyotsna.com
    IIS 7 edit website binding

    IIS 7 edit website binding

  6. 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

  1. 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
  2. Create a web site in IIS – if needed. For demostration, I am going to use “Default Web Site”
  3. Right click the concerned web site -> properties. In the “Web Site” tab, click on “Advanced” button.

    website

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

    Advanced

  5. You now need to mention three values
    Add
    • 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
  6. Click on OK/ Apply to close all windows. There is NO NEED to restart IIS to reflect the changes.

Related articles:

  1. Setting default virtual directory for your website
Categories: IIS
  1. May 19, 2010 at 2:28 pm | #1

    What company is the best Domain Registrar? i’ve heard that Godaddy and Moniker are the best…:

    • May 20, 2010 at 10:52 am | #2

      Hey Ayden.

      I think there are too many to decide which one offers the best service; but yes Godaddy and Moniker are the most popular ones.

  2. July 19, 2010 at 8:21 am | #3

    i always buy domain names at Godaddy or Moniker because they are the most reliable registrars-,-

  3. August 15, 2010 at 11:42 pm | #4

    Goddady is the best registrar, another one is Enom;,,

  4. August 31, 2010 at 12:33 pm | #5

    domain names are the bread and butter of earning money online. i just signed up with godaddy.“

  5. October 7, 2010 at 11:53 pm | #6

    domain names should be as short as possible and easy to remember, i alway use Godaddy when signing up new domain names::~

  6. November 8, 2010 at 4:17 pm | #7

    godaddy is not always the best registrar, the private registration of godaddy is too expensive ~

  7. August 8, 2011 at 9:54 pm | #8

    I think this website holds very wonderful pent subject matter content .

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 400 other followers