?
Solved

how to use Host Headers in an IIS web dev environment

Posted on 2004-08-02
1
Medium Priority
?
238 Views
Last Modified: 2010-04-20
With Windows 2003 Server Web Edition setup and functioning I am trying to use host headers to resolve on the LAN in order to ease testing of web applications.  So far I have verified that the server is working via port settings - i.e. - sitea:81 & siteb:82 - and so forth, but I a am trying to get the sites to resolve such as http://sitea.servername & http://siteb.servername.

I have setup a DNS host entry resolving servername to its IP address on the LAN.  I have entered host headers in IIS in the format sitea.servername as well as sitea - neither has allowed me to successfully resolve to any of the development sites locally, even after running an ipconfig /flushdns.

PLEASE HELP!!!
0
Comment
Question by:tcs1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 33

Accepted Solution

by:
humeniuk earned 200 total points
ID: 11699617
Unless you configure the sites to use the default port (80), you will have to continue to type the name of the website, ie. www.domain.com:85.

There is a good tutorial for Windows Server 2003 dns at www.simongibson.com/intranet/dns2003. A good place to start.  The best thing to do is take it step by step.  To quote myself from another post:

"I presume you have created your website and can see it under your server name in the IIS window.  Make sure you have entered your domain name (ie. domain.com) in the Host Header field in the configuration settings for that website.  (I will assume that you have chosen '(All Unassigned)' in the IP address field and, port 80 in the port field.

Next, open your DNS Console from the Administrative Tools folder.  Select your DNS server and double-click the Forward Lookup Zones to see the list of zones/domains registered on that server.  If you have not created a zone for your new domain (ie. domain.com), you can right click on Forward Lookup Zones and create it.

Doing this automatically creates two records, a Start of Authority Record and a Name Server Record.  Right click on your new zone and select properties.  There you can configure your SOA record (select the Start of Authority (SOA) tab - the default settings are probably adequate) and your Name Server Record (select the Name Servers tab), where you can add additional name servers (if any).

The final step is to create your Host Record (also known as your A record.  This maps a host name to an IP address.  Open your DNS console again, select your domain (ie. test.com) inside the Forward Lookup Zone.  Click 'Action' (beneath 'File' at the top of the window) -> 'New Host'.  The Location field will already be filled by the domain name (ie. domain.com).  Add a name that you wish to use, such as www (so that you can use www.domain.com) and the IP address of the IIS server (presumably 192.168.0.191 from your example).  Make sure the 'Create associated pointer (PTR) record' box is checked.  This will automatically make the corresponding PTR record, the record in the Reverse Lookup Zone that maps IP address to host name.  Click Add Host.

You should now be able to browse www.domain.com (or whatever your domain is) the same as 192.168.0.191"

I hope this helps.
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
What You Need to Know when Searching for a Webhost Provider
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question