How to Edit Your Hosts File in Windows 10

 Here are the steps for editing your hosts file:

  1. Click the Windows button and type Notepad in the search bar.
  2. Run as Administrator by selecting Notepad with the right click mouse .
  3. You’ll be asked, “Do you want to allow this app to make changes to your device?”. Choose Yes.
  4. In Notepad, choose File then Open.
  5. Navigate to C:\Windows\System32\drivers\etc\
  6. open host file in nodepade and edit e.g [IP address space hostname] xx.xx.xx.xxx myhostname
  7. Finally, you will want to flush your DNS cache for your computer to recognize changes to the file. Click the Windows button and search command prompt
  8. Type the following command in the terminal and press Enter
        

PS D:\> ipconfig /flushdns

Windows IP Configuration

Successfully flushed the DNS Resolver Cache.


Comments