Solved

Questions about PING and NSLOOKUP cmd: How the host name is resolved?

Posted on 2011-02-11
4
978 Views
Last Modified: 2012-05-11
Hi,

1- What's the order that ping cmd will resolve a host name? Check on DNS first and WINS after?

2- If the ping result doesn't give the FQDN does it means it has been resolved by WINS?

3- Does NSLOOKUP cmd is just relate to DNS server? (I mean will not communicate to WINS)
0
Comment
Question by:SAM2009
  • 2
4 Comments
 
LVL 10

Accepted Solution

by:
NetExpert-Warszawa earned 300 total points
ID: 34875275
1 - hosts, DNS, optionally WINS/lmhosts
2 - or hosts
3 - DNS only
0
 
LVL 39

Assisted Solution

by:Krzysztof Pytko
Krzysztof Pytko earned 200 total points
ID: 34875403
1) local DNS cache, hosts file, DNS server(s), NetBIOS, WINS server, lmhosts file
2) yes, if your echo request doesn't have FQDN it's NetBIOS name
3) nslookup gets information only fom DNS server

Regards,
Krzysztof
0
 
LVL 10

Assisted Solution

by:NetExpert-Warszawa
NetExpert-Warszawa earned 300 total points
ID: 34877216
Krzysztof,

Ad. 1.
You are right. I've forgotten about cache. BTW NETBIOS names use a cache too.
The order broadcast (NETBIOS) / WINS depends on settings. It is usually set to WINS first, broadcast next.

Ad. 2.
You do not need to specify a domain name in a hosts file. A name without a domain could come from the hosts file.
0
 
LVL 1

Author Closing Comment

by:SAM2009
ID: 34879682
Thank you very much!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question