Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Recently we switched the names of two computers in a small network. Let's say the first was visible as one on the network and the other was two. We just switched their names. The Windows XP machines on the network have picked up the change but there is one Windows 7 PC that has not updated its computer name to computer IP address mapping.

Is there a way in Windows 7 to clear or refresh the record of the cached names?

share|improve this question
up vote 4 down vote accepted

In Command Prompt run ipconfig /flushdns

share|improve this answer
nope, does not work :/ – xenry Nov 8 '10 at 12:07
rebooted win7? faced same trouble on win7 yesterday. Flush then reboot helped me. – stim Nov 8 '10 at 12:48
yes, several times, still not working – xenry Nov 9 '10 at 7:55
Well, the problem was that for some reason the computer name to ip address mapping was hardcoded in the "System32\drivers\etc\hosts" file =) Thanks for the help, much appreciated! – xenry Nov 10 '10 at 17:42

Ok, do you have AD in your network? Anyway, try to disable Microsoft Computer Browser Service service in win7. You must wait more than 15 min to see effect.

share|improve this answer

I know this is an old issue, but here is something I tried, and it worked:

  • open services.msc on the affected PC
  • find the Computer Browser service
  • Stop the service
  • Refresh File Browser with the network location open
  • Start the Computer Browser service

Your new name should appear.

share|improve this answer

From an elevated Command Prompt run these two commands:

ipconfig /flushdns
nbtstat -R

(Note that the -R is case-sensitive)

This clears both the DNS and NetBIOS name caches on your computer, which according to the Microsoft support article Microsoft TCP/IP Host Name Resolution Order are the two caches Windows uses to cache hostnames.

If you're still having trouble, double-check Windows Hosts file to ensure a static name mapping isn't present there. On Window NT and above the hosts file is located in the %Systemroot%\System32\Drivers\Etc\hosts file (hosts is a file name without an extension).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.