home *** CD-ROM | disk | FTP | other *** search
/ Borland Programmer's Resource / Borland_Programmers_Resource_CD_1995.iso / info / ntkb / ntkb.exe / Q108 / 2 / 95.TXT < prev    next >
Encoding:
Text File  |  1993-12-13  |  4.2 KB  |  97 lines

  1. DOCUMENT:Q108295  10-DEC-1993  [W_NT]
  2. TITLE   :TCP\IP Name Resolution
  3. PRODUCT :Windows NT
  4. PROD/VER:3.10
  5. OPER/SYS:WINDOWS
  6. KEYWORDS:
  7.  
  8. --------------------------------------------------------------------------
  9. The information in this article applies to:
  10.  
  11.  - Microsoft Windows NT operating system version 3.1
  12.  - Microsoft Windows NT Advanced Server version 3.1
  13. --------------------------------------------------------------------------
  14.  
  15. SUMMARY
  16. =======
  17.  
  18. TCP\IP under Windows NT allows a computer to communicate over a network
  19. with another computer by using either an IP address, a host name, or a
  20. NetBIOS name. However, when one computer attempts to communicate with
  21. another computer using one of these three naming conventions, that name
  22. must ultimately be resolved to a hardware address. The following are the
  23. steps used by TCP\IP to resolve a host name and a NetBIOS name to a
  24. hardware address.
  25.  
  26. MORE INFORMATION
  27. ================
  28.  
  29. Host Name Resolution Using a Hosts File
  30. ---------------------------------------
  31.  
  32. 1. Computer A enters a command using the host name of Computer B.
  33.  
  34. 2. The HOSTS file on Computer A (contained in the
  35.    %SystemRoot%\system32\drivers\etc directory ) is parsed. When the host
  36.    name of Computer B is found, it is resolved to an IP address.
  37.  
  38. 3. The Address Resolution Protocol (ARP) is then used to resolve the IP
  39.    address of Computer B to its hardware address. If Computer B is on the
  40.    local network, its hardware address will be obtained by using the ARP
  41.    cache or by sending a local broadcast asking for a reply from Computer B
  42.    with its hardware address. If Computer B is on a remote network, ARP
  43.    will determine the hardware address of the default gateway for routing
  44.    to Computer B.
  45.  
  46. NOTE: Host name resolution using a Domain Name Server (DNS) is similar to
  47. the steps outlined above. Instead of parsing the HOSTS file in Step 2, the
  48. DNS looks up the host name of Computer B in its database and resolves it to
  49. an IP address.
  50.  
  51. NetBIOS Name Resolution
  52. -----------------------
  53.  
  54. 1. Computer A enters a Windows NT command using the NetBIOS name of
  55.    Computer B.
  56.  
  57. 2. The LMHOSTS cache on Computer A is checked for the IP address that
  58.    corresponds to the NetBIOS name of Computer B.
  59.  
  60. 3. If the IP address of Computer B is found in the LMHOSTS cache, ARP will
  61.    resolve the IP address to Computer BÆs hardware address (see Step 3 of
  62.    the Host Name Resolution Using A Hosts File section above). If, however,
  63.    the NetBIOS name is not resolved from the LMHOSTS cache, Computer A
  64.    broadcasts a name request with the NetBIOS address of Computer B.
  65.  
  66. 4. If Computer B is on the local network, Computer A will receive a
  67.    response to its name request broadcast containing the IP address of
  68.    Computer B. ARP will then resolve Computer BÆs IP address to its
  69.    hardware address.
  70.  
  71. 5. If Computer B is on a remote network, Computer A will not receive a
  72.    reply to its name request broadcast. The LMHOSTS file on Computer A
  73.    (contained in the %SystemRoot%\system32\drivers\etc directory) is then
  74.    parsed. If a mapping for the NetBIOS name of Computer B exists, it is
  75.    resolved to its IP address. Since this is the IP address of a remote
  76.    computer, ARP will determine the hardware address of the default gateway
  77.    for routing to Computer B.
  78.  
  79. Additional reference words: 3.10
  80. KBCategory:
  81. KBSubCategory: tpip
  82.  
  83. =============================================================================
  84.  
  85. THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS
  86. PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.  MICROSOFT DISCLAIMS
  87. ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES
  88. OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  IN NO
  89. EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR
  90. ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL,
  91. CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF
  92. MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE
  93. POSSIBILITY OF SUCH DAMAGES.  SOME STATES DO NOT ALLOW THE EXCLUSION
  94. OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES
  95. SO THE FOREGOING LIMITATION MAY NOT APPLY.
  96.  
  97. Copyright Microsoft Corporation 1993.