How to insert and edit the hosts file in Windows 10

What is needed? Among other things, you can test your website without publishing it, verify that a site is working before changing DNS, perform DNS related tasks, block several DNS accesses to your computer, etc.

Two entries must be added when editing the hosts file. Each of these items has an IP address and domain. It is quite simple in everything and can be remarkably useful in many situations.

Best of all, it's so easy to make these changes, it doesn't hurt to know how to insert and edit the host file in Windows 10 in case we need to do it someday.




How to insert and edit the hosts file in Windows 10

How to edit the hosts file in Windows 8 and Windows 10

If you've installed Windows 8 or 10 and want to be able to tweak the file host, you have to follow the steps you will see below. It is not complicated at all and in a short time you will be able to modify this file to your liking.

  • The first thing you will need to do is press the Windows key or go up start.
  • Digita ” Block notes “Or look for it in applications.
  • Once you have found the notepad, you will need to open it as an administrator. For this you need to right-click on the app and " Run as administrator ".
  • In the notepad you will need to open the following address "c: Windows System32 Drivers etc hosts".
  • Proceed to make the changes you need to make and once finished simply save the file from the menu " Fillet ”Located at the top left of the notepad.

How to edit the hosts file in Windows 7 and Windows Vista

  • You have to go to start and look for the " Block notes "You can write it or access it from" Accessories ".
  • Either way, you need to open it as an administrator. For this you will simply have to right-click on "Notepad" and click on " Run as administrator ".
  • A confirmation message is displayed to grant permissions. You just have to press continue.
  • In the notepad you should go to the top left of the screen " Fillet ”And then you should open the following file:“ c: Windows System32 Drivers etc hosts ”.
  • Edit the file in question and then you will simply have to save it. For this you will have to go back to "File" at the top of left.

How to insert and edit the hosts file in Windows 10




How to edit the hosts file in Linux

  • You have to open a window " terminal ".
  • Next, you will need to type the host command in the text editor. This command is: " sudo nano /etc/hosts ".
  • You must enter the password of the user.
  • After that, you will need to make any changes you deem necessary in said file.
  • Now you need to press Ctrl + X.
  • A pop-up window will appear asking if you want to save the changes. Just press "Y" And that's it.

In almost all operating systems, the way to open the host file for modify it it's remarkably similar, and as you can see, it's not complicated at all. In seconds you will be able to learn how to insert and edit the host file in Windows 10.




If you have any kind of doubt about it or about another related topic, we recommend that you browse Miracomosehace where you will find countless tutorial, very detailed guides and tricks for Windows, MacOS and Linux which will facilitate many activities that you thought were complicated.

In turn, if you have some kind of problem for insert and edit host file in Windows, you can leave us a comment with your question a little below.

TagsTutorial
add a comment of How to insert and edit the hosts file in Windows 10
Comment sent successfully! We will review it in the next few hours.