How to Use a HOSTS File to Test a Site that Uses Host Headers on an IntranetID: Q228760
|
This article describes how to use the HOSTS file to test a site that uses a host header name over an intranet.
CAUTION: Modifying the HOSTS file on your computer incorrectly can interfere with name resolution. Be sure to make a backup copy of the HOSTS file before modifying it. After testing that the new site that uses a host header name is working properly, you may want to return your HOSTS file back to its original form.
Also, if your intranet uses Dynamic Host Configuration Protocol (DHCP) to dynamically assign IP address to computers, keep in mind that the IP addresses can change, and therefore the IP address referred to in your HOSTS file may eventually belong to another computer.
Microsoft Knowledge Base article Q190008Using Host Header Names to Host Multiple Sites from 1 IP Address describes how to use host header names on an IIS computer.
However, if the IIS computer that contains the site using the host header name is located on an intranet (a private LAN that uses Internet technology), that host header name must be first be registered with the intranet's name resolution system, such as the Windows Internet Name Service (WINS) before it can be browsed to.
In order to test the site immediately (without waiting for the intranet's administrator to update the name resolution system), modify the HOSTS file of the computer you plan to browse from.
Additional query words: web ftp hostheader Domain Name Server DNS WINS
Keywords :
Version : winnt:4.0
Platform : winnt
Issue type : kbhowto
Last Reviewed: April 27, 1999