troubleshooting Question

Different in DNS resolution between PING and NSLOOKUP (on Windows)?

Avatar of serveradm
serveradmFlag for United States of America asked on
Microsoft Legacy OSInternet ProtocolsWindows Networking
3 Comments2 Solutions1895 ViewsLast Modified:
I'm trying to better understand the fundamental difference between how nslookup and ping get DNS resolution.

For example, in some oddball situations, nslookup for a specific domain or subdomain will completely timeout (domain won't resolve at all).  However, for that same domain or subdomain, if I try to ping it instead,  it will show an IP address for that hostname.

So somehow ping can resolve the IP address, and nslookup can't.
Don't both commands use the default DNS servers configured on the specific machine?

Here's an example below:

(the "Can't find server name for address" error is just because we don't' have rDNS for our nameserver IP and not related to the issue)


*** Can't find server name for address Non-existent domain
Server:  UnKnown

DNS request timed out.
    timeout was 2 seconds.

*** Request to UnKnown timed-out



Pinging [] with 32 bytes of data:

Where is ping getting the IP resolution from if nslookup can't resolve the same hostname?

Craig Beck
Network Architect and EE TA
Join our community to see this answer!
Unlock 2 Answers and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros