10/08/2012

Win7 Modify Hosts file

1. Open Host file in administrator role. For example, you can open notepad++ in admistrator role and then open Hosts in notepad++.

2. Modify the file.

3. Open cmd, execute ipconfig /flushdns to refresh the DNS cache. If browser is opened, close the browser.

4. Try to ping the new added domain.

Done!

Note: nslookup only check the DNS server. It DONOT check the Hosts file.

Reference:
http://xjsunjie.blog.51cto.com/999372/743759

No comments:

Post a Comment