Machine name resolves to wrong IP

5,213

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!

Share:
5,213

Related videos on Youtube

Micah
Author by

Micah

Updated on September 18, 2022

Comments

  • Micah
    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
      Micah over 12 years
      It's like the WINS/NETBIOS resolution is getting cached. I've been trying nbtstat and arp to clear it, but not sure I'm doing it right.
    • Mathias R. Jessen
      Mathias R. Jessen over 12 years
      ipconfig /registerdns
    • Micah
      Micah over 12 years
      @MathiasR.Jessen That doesn't seem to be working. Also if I run ipconfig /displaynds there's no entry for server1.
    • Brad Christie
      Brad Christie over 12 years
      Cached 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
      Micah over 12 years
      I don't have a DC setup.
    • Brad Christie
      Brad Christie over 12 years
      You deleted DNS entry & WINS (on the server)?
    • Micah
      Micah over 12 years
      on the server I'm trying to ping or the one I'm trying to ping from?
  • Micah
    Micah over 12 years
    It's not. Just a DHCP server. We're not running an internal DNS server.
  • Micah
    Micah over 12 years
    Yeah, no IP on hosts file. Did setup a WINS server (on same DHCP server). Will setup DNS on it also.
  • Henk
    Henk over 12 years
    So... is your question answered then? Please accept my answer if it is.
  • Micah
    Micah over 12 years
    Nope. Still no solution,