Solved

how to use Host Headers in an IIS web dev environment

Posted on 2004-08-02
1
235 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 50 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to Eclipse 16 154
Systems talking to each other 5 149
DNS @ Naked Domain Record 5 130
Windows Server 2102 R2 - IIS 8.5 redirection assistance ? 7 71
This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
Suggested Courses

732 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