Share on Facebook Share on Twitter

To edit hosts file in Windows 10, you need to run Notepad as Administrator. To do that, using your windows search icon in the taskbar in windows 10, in windows 7, click start / and type in search box: notepad. In windows 8 and windows 8.1, at the metro screen, enter notepad in search box (up top right conner).
a notepad.exe will show up, right click on that notepad.exe icon and choose Run as Administrator. It will ask you to accept permission, click yes to accept.

Run notepad as administrator

Run notepad as administrator

A new Untitled Notepad window will open, click File/ Open. Navigate in Lookup to C:\Windows\System32\drivers\etc (All windows) if your windir is locate other than C, then change it depend yours. Make sure you show All files in below picture.
Click into hosts file and Open.

How to edit hosts file in Windows

How to edit hosts file in Windows

A host file window will open, change it as you want (in my case, i have change my domain to host at new host IP is
After you’ve done editing, click File/ Save.

How to edit hosts file in Windows

How to edit hosts file in Windows

Close that Notepad Window, Clear DNS cache by open Command Prompt as Administrator, then run command: ipconfig /flushdns
(Some time, after clear DNS cache, you have to restart your computer to take effect)
Open your web browser and go to the domain you change (mine is to see if it showing new host content or not.

Download windows host file example:


Same tags:

  1. Cách download Windows XP, Windows 7, 8.1 trực tiếp từ Microsoft
  2. How to Hide a User Account from the Welcome Screen in Windows 10
  3. How to fix “your credentials did not work” on Windows 10
  4. How to edit the Hosts file on Mac OS X
  5. Fix: Windows 10 Start Menu not work
  6. Làm thế nào để boot vào Safe Mode trong windows 10?
  7. How to fix Error 0x8007045b

Other Posts you may be interested in:

  1. Ất Mùi 2015 – việc nên làm và không nên làm
  2. NameCheap Coupon .Net only $3.88
  3. Cách lập trình viên giải thích cho khách hàng hiểu công việc
  4. Cách xử lý khi bị kiến ba khoang đốt
  5. Tăng tốc máy tính với CCleaner và vài thủ thuật nhỏ
  6. Những điều cần biết khi nâng cấp lên Windows 10
  7. Transfer domain .xyz về dreamhost chỉ $1.95

Last updated on March 31st, 2020 at 06:03 am


What do you think?

This website is using cookies. More info. That's Fine