Ping and nslookup giving different resultes

I was trying to troubleshoot why one of our PCs was having problems connecting to our Exchange server.    I checked and they had access to the network and to the internet and everything except Outlook seemed to be working fine.  

I did a nslookup on and it returned the local IP address of the mail server.   I then did a ping and it resolved to an external IP address.    I then checked the DNS servers and they were the same as everyone elses (configured with DHCP).  

I then went to a different PC and tried the same thing.  On this PC nslookup and ping both resolved to the same address.   This network settings on this PC were setup manually and one of the DNS servers was different so I changed them to match the original PC and tried again with the same results.  On the PC I am having the problem with nslookup resolves to the IP I am looking for but pIng and Outlook do not.    On a different PC nslookup, ping and Outlook all work fine and resolve to the correct internal IP address.  

What would make one PC resolve the address differently between nslookup and ping?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Try ipconfig /flushdns and retest

also check the hosts file c:/windows/system32/drivers/etc/hosts

it could of had the ip set manually in there which would cause the different results as nslookup should check the dns server where as ping will just check hosts file first

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Kyle DaviesRetail Software SpecialistCommented:
If you do flucshdns remember to register is agagin ipconfig /registerdns
qvfpsAuthor Commented:
Thanks for the input.  I will keep these in mind the next time I am troubleshooting a similar issue.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.