Nslookup and ping resolves to different ip


  1. Posts : 108
    Windows 7 Ultimate x64
       #1

    Nslookup and ping resolves to different ip


    Hi

    I pinged and nslookup an ip and both shows different ip?
    Why?

    How is it possible?

    I did it on a my laptop. Both commands were entered in same command prompt Window with a gap of few seconds in between.. How is it possible?

    my ip settings are correct.
      My Computer


  2. Posts : 10,485
    W7 Pro SP1 64bit
       #2
      My Computer


  3. Posts : 2,497
    Windows 7 Pro 64 bit
       #3

    This can happen and doesn't mean anything is wrong.
    Some large websites have several servers, each with a different IP address. The DNS server that is authoritative for the site will pick one in round robin fashion to spread the load among the servers. Any other DNS server involved could have any one of the IP addresses depending on when the authoritative DNS server was accessed. The address shown in ping probably came from the local DNS cache which could be any IP address in the series.
      My Computer


  4. Posts : 10,485
    W7 Pro SP1 64bit
       #4

    plumpf said:
    Hi

    I pinged and nslookup an ip and both shows different ip?
    Why?

    How is it possible?

    I did it on a my laptop. Both commands were entered in same command prompt Window with a gap of few seconds in between.. How is it possible?

    my ip settings are correct.

    LMiller7 said:
    ...The address shown in ping probably came from the local DNS cache which could be any IP address in the series.
    DNS cache should not be involved when one pings an IP since there is no domain name to be resolved.

    It is fine to get a list of IP addresses if one does an NSlookup on a domain name. But doing an NSlookup on an IP address should yield the source and one IP address.

    Perhaps I did not understand what the OP was doing - hence my request for a screenshot.
      My Computer


  5. Posts : 2,497
    Windows 7 Pro 64 bit
       #5

    I assumed that the ping was by domain name in which case the DNS cache is very much involved. If the ping was by specific IP address there is no reason why it should match anything.

    But without knowing exactly what the commands entered were this is all just guesswork.
      My Computer


  6. Posts : 10,485
    W7 Pro SP1 64bit
       #6

    I could be misinterpreting the OP...
    (I pinged and nslookup an ip...)
    ...maybe he asked ping to resolve IP to host name*
    ...which I did not do here:
    Nslookup and ping resolves to different ip-ns-ping.png
    That is what I figured should always match.

    *which may involve the DNS cache. I keep that service disabled per the advice of those providing me an anti-malware HOST file. When the DNS service is disabled, the ping app makes a fresh DNS query.

    Let's see what the OP can show us
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 00:10.
Find Us