We help IT Professionals succeed at work.

Ping by name returns the wrong IP address

Haradmin asked
Medium Priority
Last Modified: 2008-02-01
I slipped and did a big networking NO NO. I recently restored a backup of a ghost image on a computer. Somehow it slipped passed me and I connected it to our network, when the original computer was still on the network. The orginal computer is setup with a static IP address (since it's a server), therefore the restored machine was also static IP address, SAME IP ADDRESS, SAME HOSTNAME. Anyways, bells and whistles went off on the original computer when the network found the duplicate IP/Hostname, which then I disconnected the restored PC from the network. Now, when I try to ping the original computer by hostname it returns an different IP address than the static one I've given it. When I try a ping -a XX.XXX.XXX.XXX, on the static IP address, it returns a different hostname. I know this is probably a DNS issue but I'm not exactly sure where to look.  I'm running DNS and DHCP on a Windows 2000 Server machine w/ Active Directory.
Watch Question

Top Expert 2013
Open the DNS management console and under Forward look up zones for your domain delete the A record for the computer in question, or correct it. In the reverse lookup zones (if you have them) look for the Ptr record for that IP and delete or edit it.
If using static IP's you should be OK but if you used DHCP briefly check the assigned addresses to make sure they are correct. Delete the wrong entry  if one exists.
Then on the computer from which you were making the query you may also need to run at a command line   ipconfig  /flushdns
This should help.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
try removing all the entries in your arp table

arp -d *

the try a ping to xx.xxx.xxx.xxx

Also reboot the machine in question  (or disable then re-enable it's networking) just to ensure it re-claims it's IP.  Once you're sure the machine is on the right IP run ipconfig /registerdns  which will cause it to update all it's records in DNS
I think rob has the answer here: check the DNS entries, and then do ipconfig /flushdns. quite likely the machie you are pinging from simply has it in the DNS cache. It has nothing to do with arp, since thats about mac-ip address resolution, not name resolution.

A reboot of the client machines will probably fix this too, so unless its affecting someone, just wait til they reboot.

Sam PanwarSr. Server Administrator


Have you check your local system etc/host file entries

c:\windows\system32\driver\etc\hosts file there any entry remove it and try
linux in etc\hosts


Thanks RobWill, that did the trick!
Top Expert 2013

Thanks Haradmin,
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.