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

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)
LVL 1
SAM2009Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
NetExpert-WarszawaConnect With a Mentor Commented:
1 - hosts, DNS, optionally WINS/lmhosts
2 - or hosts
3 - DNS only
0
 
Krzysztof PytkoConnect With a Mentor Active Directory EngineerCommented:
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
 
NetExpert-WarszawaConnect With a Mentor Commented:
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
 
SAM2009Author Commented:
Thank you very much!
0
All Courses

From novice to tech pro — start learning today.