Machine name resolves to wrong IP
Is that DHCP server also running as a DNS server? If so, clean up the host entry in DNS (delete and/or clear cache).
Update, 20120219
From an other post you made "Can't find computer by name only by IP address", I make up you do not have any internal naming resolution (like DNS, WINS or host-files).
My advice? Unless you want to return here every other month with resolving issues, get an internal DNS ASAP!
Related videos on Youtube
![Micah](https://i.stack.imgur.com/T1WbE.png?s=256&g=1)
Micah
Updated on September 18, 2022Comments
-
Micah almost 2 years
I have a machine called server1 (windows server 2008). It was initially set to have an automatically assigned IP by the DHCP server (windows server 2008). It assigned it 192.168.0.180. I changed server1 to have a static ip of 192.168.0.60. I then deleted the reservation out of the DHCP server. On my local dev machine (windows 7) when I try to ping it it resolves to the old 192.168.0.180 address. I've tried `ipconfig /flushdns' on all the machines, and I've tried rebooting etc. From server1 when I ping it by its name it resolves properly, just not from anywhere else. Is there some cache somewhere that needs to be cleared?
Thanks for the help.
-
Micah over 12 yearsIt's like the WINS/NETBIOS resolution is getting cached. I've been trying
nbtstat
andarp
to clear it, but not sure I'm doing it right. -
Mathias R. Jessen over 12 years
ipconfig /registerdns
-
Micah over 12 years@MathiasR.Jessen That doesn't seem to be working. Also if I run
ipconfig /displaynds
there's no entry forserver1
. -
Brad Christie over 12 yearsCached result in the DC possibly? -- EDIT: Can you directly ping the fixed IP, and it's just the "Server1" failing to resolve or is the server inaccessible entirely?
-
Micah over 12 yearsI don't have a DC setup.
-
Brad Christie over 12 yearsYou deleted DNS entry & WINS (on the server)?
-
Micah over 12 yearson the server I'm trying to ping or the one I'm trying to ping from?
-
-
Micah over 12 yearsIt's not. Just a DHCP server. We're not running an internal DNS server.
-
Micah over 12 yearsYeah, no IP on hosts file. Did setup a WINS server (on same DHCP server). Will setup DNS on it also.
-
Henk over 12 yearsSo... is your question answered then? Please accept my answer if it is.
-
Micah over 12 yearsNope. Still no solution,