INFO: HOSTS File and Multi-homed Machine Name ResolutionLast reviewed: November 21, 1997Article ID: Q177075 |
The information in this article applies to:
SUMMARYThe HOSTS file as described in the following Knowledge Base article:
ARTICLE-ID: Q108295 TITLE : TCP/IP Name Resolutioncannot be used to implement name resolution for multi-homed machines using the same name. However, it can be used to implement name resolution for multi-homed machines using different names to indicate each IP address of each Network Interface Card (NIC).
MORE INFORMATIONGiven an understanding of the HOSTS file, you can map "friendly names" to IP addresses. However, each "friendly name" must be unique. For example, you should be able to do:
myhost -> address1 myhost1 -> address1but not:
myhost -> address1 myhost -> address2As described in Q108295, the HOSTS file is parsed at name resolution time to match the given "friendly name" to an IP address. This parsing only looks for a single match, so multiple entries using the same "friendly name" has no effect. To implement name resolution for multi-homed machines, you need to use a unique "friendly name" for each NIC. This lends to unambiguous resolution of any given "friendly name" to a specific address, allowing applications and testing to target individual NICs. Keywords : NtwkMisc NtwkTcpip Version : WINDOWS:95; WINNT:4.0 Platform : Win95 winnt Issue type : kbinfo |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |