Re: WINS

From: morten skrubbeltrang (mskrubbeltrang@hotmail.com)
Date: 11/25/02


From: mskrubbeltrang@hotmail.com (morten skrubbeltrang)
Date: 25 Nov 2002 11:42:07 -0800

And I agree with Jeff ;-) except that he forgets to mention the local
hostname cache (check it out with "ipconfig /displaydns"), which is
checked before querying DNS.

All there's left to say is that you have to check if the application
wanting name resolution is querying the NetBIOS interface (eg. the
"net use" command) or the Windows Sockets interface (eg. the ping
command)? If it's querying the Windows Sockets interface name
resolution occurs as Jeff explains. If it's querying the NetBIOS
interface then it's the same succession except that it will start
querying the local NetBIOS cache, continue as described (WINS,
broadcast, LMHosts), and if it "NetBIOS-lucks-out" it will jump to the
Windows Socket resolution method to see if the computername is the
local host name and continue as described (hosts file, hosts cache,
DNS).
By the way if you wonder how NetBIOS nameresolution and Windows
Sockets nameresolution can interchange?: When a NetBIOS name tries the
host name part of nameresolution your dns suffix is appended to the
NetBIOS name. When a Windows Sockets name tries the NetBIOS name part
of nameresolution your dns suffix is removed from the name.
(You find links for great Microsoft whitepapers on nameresolution at
http://www.skrubbeltrang.com - check the DNS and the WINS section).

Hope this helps, Morten Skrubbeltrang

jefffqiu@online.microsoft.com (Jeff Qiu) wrote in message news:<4D6XMmElCHA.2804@cpmsftngxa06>...
> Hi Charles,
>
> Yes, I agree with what Karl said.
>
> Here are some more information about the process of the Host Names
> Resolution:
>
> Microsoft Methods of Resolving Host Names
> Windows 2000 can be configured to resolve host names using a NetBIOS name
> server, broadcast, and LMHOSTS in addition to the HOSTS file and DNS
> server. If one of these methods fails, the other methods provide a backup.
> If WINS and LMHOSTS are configured, the order of resolution is as follows
> (Even WINS is disabled, the LMHOST will still be used):
>
> When a user types a command referencing a host name, Windows 2000 checks to
> see if the host name is the same as the local host name. If they are the
> same, the name is resolved and the command is carried out without
> generating network activity.
>
> If the host name and local host name are not the same, the HOSTS file is
> parsed. If the host name is found in the HOSTS file, it is resolved to an
> IP address and address resolution occurs.
>
> If the host name cannot be resolved using the HOSTS file, the source host
> sends a request to its configured domain name servers. If the host name is
> found by a DNS server, it is resolved to an IP address and address
> resolution occurs.
>
> If the DNS server does not respond to the request, additional attempts are
> made at intervals of 1, 2, 2, and 4 seconds.
>
> If the DNS server cannot resolve the host name, the source host checks its
> local NetBIOS name cache before it makes three attempts to contact its
> configured NetBIOS name servers. If the host name is found in the NetBIOS
> name cache or by a NetBIOS name server, it is resolved to an IP address and
> address resolution occurs.
>
> If the host name is not resolved by the NetBIOS name server, the source
> host generates three broadcast messages on the local network. If the host
> name is found on the local network, it is resolved to an IP address and
> address resolution occurs.
>
> If the host name is not resolved using broadcasts, the local LMHOSTS file
> is parsed. If the host name is found in the LMHOSTS file, it is resolved to
> an IP address and address resolution occurs.
>
> If none of these methods resolves the host name, the only way to
> communicate with the other host is to specify the IP address.
>
> Regards,
>
> Jeff Qiu
> jefffqiu@online.microsoft.com
> Online Support Professional
> Microsoft Corporation
>
> This posting is provided Ħ°AS ISĦħ with no warranties, and confers no
> rights.
>
> --------------------
> >From: "Charles K. MacKay" <ckmackay@ptdprolog.net>
> >Subject: WINS
> >Date: Fri, 22 Nov 2002 21:19:53 -0500
> >microsoft.public.win2000.security
> >
> >On a Win2K server, if WINS is NOT in use on the network, and the "enable
> >LMHOST lookup" box is checked on the TCP/IP Advanced properties tab, is the
> >LMHOST file actually used for name resolution, or not?
> >
> >Thanks in advance --
> >
> >Charlie
> >ckmackay@ptdprolog.net
> >
> >
> >



Relevant Pages

  • Re: How do I track down which server is resolving my DNS query?
    ... If I pinged it with just the host name, the IP address came back with an incorrect ip addressI have now removed the node from the network. ... DNS Server ... Broadcasts might resolve NetBIOS names (and even be used by a DNS ... enters into both DNS and NetBIOS name resolution. ...
    (microsoft.public.win2000.dns)
  • Re: DNS / WINS
    ... DNS is used for resolving host names to IP addresses and IP addresses to ... WINS is used for resolving NetBIOS names to IP addresses (but does not do ...
    (microsoft.public.sms.admin)
  • Re: W2K PC much slower after joining domain and applying SP4
    ... But if my SBS03 domain is natively using host name resolution, ... Implementing NetBIOS name resolution as your ... >> obtained via DHCP from the server. ...
    (microsoft.public.windows.server.sbs)
  • Re: DNS, WINS-R, Other?
    ... the record does not show up in DNS or in the WINS database. ... >> querying the host at the requested IP address for its NetBIOS host ... > kind of a direct NetBIOS query of the host at that IP address to find out ... > what its host name is, then caching that lookup in the NetBIOS cache. ...
    (microsoft.public.windows.server.dns)
  • RE: WINS
    ... Here are some more information about the process of the Host Names ... server, broadcast, and LMHOSTS in addition to the HOSTS file and DNS ... IP address and address resolution occurs. ... If the DNS server cannot resolve the host name, ...
    (microsoft.public.win2000.security)

Loading