Link to home
Start Free TrialLog in
Avatar of serveradm
serveradmFlag for United States of America

asked on

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

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 xxx.xxx.xxx.xxx" error is just because we don't' have rDNS for our nameserver IP and not related to the issue)


NSLOOKUP:

C:\>nslookup api-aa-3t.paypal.com
*** Can't find server name for address xxx.xxx.xxx.xxx: Non-existent domain
Server:  UnKnown
Address:  xxx.xxx.xxx.xxx

DNS request timed out.
    timeout was 2 seconds.

*** Request to UnKnown timed-out


PING:

C:\>ping api-aa-3t.paypal.com

Pinging api-aa-3t.paypal.com [173.0.88.68] with 32 bytes of data:



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


Thanks
ASKER CERTIFIED SOLUTION
Avatar of Craig Beck
Craig Beck
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
are you using your domains/isp's dns server?  add a forwarder (domain dns) to use or edit your network adapter settings ipv4 to add a better dns server (non domain users)
i.e.  google public dns servers 8.8.8.8 and 8.8.4.4
opendns 208.67.222.222 208.67.220.220

C:\Users\David>nslookup api-aa-3t.paypal.com
Server:  google-public-dns-a.google.com
Address:  8.8.8.8

Non-authoritative answer:
Name:    api-aa-3t.paypal.com
Addresses:  173.0.88.100
          173.0.84.68
          173.0.84.100
          173.0.88.68
C:\Users\David>ping api-aa-3t.paypal.com
Pinging api-aa-3t.paypal.com [173.0.88.100] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 173.0.88.100:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

Open in new window


Interesting tool to test dns
https://www.grc.com/dns/benchmark.htm
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial