Using \\ in Windows
up2thetime
Member Posts: 154
in CCNA & CCENT
Hey,
Just wondering what using \\ does in Windows.
When I go Start > Run and type in \\(ip address) or \\computername, it shows the shared resources on the other computers.
What I am wondering is...
When I type in \\computername, what is happening?
Is my machine sending out something like a broadcast address resolution message, and trying to resolve "computername" to an IP address?
Thank you.
Just wondering what using \\ does in Windows.
When I go Start > Run and type in \\(ip address) or \\computername, it shows the shared resources on the other computers.
What I am wondering is...
When I type in \\computername, what is happening?
Is my machine sending out something like a broadcast address resolution message, and trying to resolve "computername" to an IP address?
Thank you.
Comments
-
thenjduke Member Posts: 894 ■■■■□□□□□□This means going to point to a unc path.CCNA, MCP, MCSA, MCSE, MCDST, MCITP Enterprise Administrator, Working towards Networking BS. CCNP is Next.
-
drew2000 Member Posts: 290It's using netbios, which can use a broadcast packet to resolve the name.
How NetBIOS name resolution really works
Drew -
thenjduke Member Posts: 894 ■■■■□□□□□□And I recommend looking at the IOS model how this is handled. Be honest with you the first thing I would do is work way down IOS model. Remember that each layer relies on the other adjancent layers.CCNA, MCP, MCSA, MCSE, MCDST, MCITP Enterprise Administrator, Working towards Networking BS. CCNP is Next.
-
up2thetime Member Posts: 154OSI model right?
I thought it was something similar to how ARP works.
Instead of resolving MAC address to a given IP, it resolves an IP to a computer-name. -
thenjduke Member Posts: 894 ■■■■□□□□□□OSI Model yeah. Sorry was thinking about upgrading IOS on Router when I answer this. Windows is funny when comes to getting computer names on the network. Microsoft does not follow standards so \\ might look for netbios name first. Who the hell knows with them though. It is rather annoying. I took my MCSE about two years ago and OMG what the hell they are all over the place.CCNA, MCP, MCSA, MCSE, MCDST, MCITP Enterprise Administrator, Working towards Networking BS. CCNP is Next.
-
up2thetime Member Posts: 154Hey thanks!
I was wondering how it worked. Just started working with Windows.
I was trying to relate the \\ command to something in the ICND1 book. -
dynamik Banned Posts: 12,312 ■■■■■■■■■□As mentioned earlier, it's using NetBIOS. If it doesn't already have the name>IP mapping cached, it simply sends out a broadcast asking who that name belongs to (or uses a WINS server if configured for that).
-
thenjduke Member Posts: 894 ■■■■□□□□□□Exactly what Dynamik said. I figure it used netbios. It is ashame that windows does it this way.CCNA, MCP, MCSA, MCSE, MCDST, MCITP Enterprise Administrator, Working towards Networking BS. CCNP is Next.
-
undomiel Member Posts: 2,818I've been looking for some documentation and sadly will confess I can't find any, either way. But I do believe that Windows Explorer on Windows 2000 on up will first attempt name resolution by DNS and then fail back to NetBIOS. Otherwise UNC browsing would always be slow as molasses.Jumping on the IT blogging band wagon -- http://www.jefferyland.com/
-
dynamik Banned Posts: 12,312 ■■■■■■■■■□Exactly what Dynamik said. I figure it used netbios. It is ashame that windows does it this way.
You can disable NetBIOS -
astorrs Member Posts: 3,139 ■■■■■■□□□□Actually Windows name resolution is well defined it's just not well published.
For a non-FQDN (SERVER1) it follows this order until it gets an answer or gives up:- Cache
- WINS
- Broadcast
- LMHosts file
- Hosts file
- DNS
or if you prefer "Can We Buy Large Hard Drives?"As for FQDN's (SERVER1.DOMAIN.COM) it follows this order until it gets an answer or gives up:- It first checks its local DNS cache
- It queries the first name server of the preferred network adapter and waits just one second.
- If no answer is received, it resends the query simultaneously to the first name server configured for each network adapter and waits two seconds. If the host has only one network adapter, this step is skipped.
- If no answer is received, it resends the query simultaneously to all name servers configured for all adapters and waits two seconds.
- If no answer is received, it resends the query simultaneously to all name servers configured for all adapters and waits four seconds.
- If no answer is received, it resends the query simultaneously to all name servers configured for all adapters and waits eight seconds.
- If after all this time no name server has returned an answer, it gives up and an error is returned.
-
undomiel Member Posts: 2,818Finally found the documentation that I was looking for. I would beg to differ about the name resolution. Chapter 7 - Host Name Resolution
From my understanding the order works this way:
1. checks local host name
2. checks the local host dns cache (which is also where the hosts entries are loaded, didn't know that before)
3. checks the configured dns server (unqualified names will be appended depending upon the configured network connection's settings)
4. checks the netbios cache
5. checks the configured wins server
6. checks via broadcast
I also found this one for win3.1-95 and it looks like I was wrong, the resolution order is similar: Microsoft TCP/IP Host Name Resolution OrderJumping on the IT blogging band wagon -- http://www.jefferyland.com/