Updating vista hosts file
this issue happens usually when you're working on Win Vista/7 with UAC turned on.
*** on Win8 you can't just edit the file and save it on it's original location. later replace the original file with the new one you saved on the desktop using the file explorer's Copy-Paste.
Actually I was wrong: no one of the proposed solutions worked. Unless you have dns suffixing setup to append the domain names to the end of the host, you can usually tell if it is netbios by the use of a single name for resolution.I use the LMHOSTS file to define names for IP addresses the other side of the VPN.Unlike the other comments, I find that pinging a name after updating the LMHOSTS file does not use the new IP immediately.It does happen eventually but to speed up the process I use: nbtstat -R "-R (Reload) Purges and reloads the remote cache name table" I have tried ipconfig /flushdns but it did not work for me. Or run it from a command prompt with administrator privileges] Powershell cmdlets Set-Hosts Entry and Remove-Hosts Entry no reboot needed, can be scheduled, could probably be triggered upon connection to specific Wifi or Network names Syntax: Set-Hosts Entry -IPAddress 10.5.6.7 -Host Name 'myserver' and Remove-Hosts Entry -Host Name 'myserver' install as part of carbon package from worked for me and my temporary internal email server. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).Would you like to answer one of these unanswered questions instead?