How to Edit Manage Host File In Windows 10

While most users don’t ever think a need of editing their computer’s hosts file, but exceptions are always there. Before we move towards the process of modifying this important file system, let’s learn something about host file so you can be aware of what you’re doing and what will be its effects.

The Hosts file is a part of your computer’s operating system that maps hostnames to IP addresses and is a plain text file, but doesn’t have any extension.  The Hosts file converts the host name to IP and vice versa.

How to Edit Host File

It is available on every operating system like Windows, Mac, Linux, etc. So the browsing and opening other networks by ‘name’ will be smoother by avoiding DNS server requests.The role of this file in your system is to map user-friendly host names to their respective IP addresses so you can browse the internet. If you block a website inside this file, you won’t be able to browse it anymore. This can be used perfectly to block access to any websites that you don’t want to visit,

If you want to block a website inside this file, which you don’t want to be able to browse anymore. This can also be used perfectly to block access to any websites that you don’t want to visit. Sometimes these hosts file can be used by malicious software such as adware, computer viruses, or trojan horses etc. These applications may use it to redirect traffic from the intended destination to sites hosting malicious or unwanted content.

How to Edit the Windows 10 Hosts File

There are the steps which you can use to edit Windows 10 hosts file.

Step 1: Firstly clicks on the file explorer and then select the C drive or the drive in which operating system is installed.

Step 2: When you select the C drive some options will appear on your screen, simply select the Windows option.

Step 3: Once you click on the Windows option, new files will be seen on your screen and then select the Windows 32 files from them.

Step 4: When you select Windows 32, again some more files appeared on the screen and from them select the drivers option.

Step 5: Once drivers are opened simply click on the etc option appeared on your screen.

Step 6: When you are done with the above steps, your address path will exactly look like

C:\Windows\System32\Drivers\etc

Step 7: Once you clicked on etc, some options appear on your screen, you will find a file name Hosts, simply copy the HOSTS file to your Desktop.

Step 8: Open the copy file which you saved on your Desktop in Notepad.

Step 9: Once the file is opened in notepad, simply make all necessary changes. For example, adding a line that translates 192.168.2.5 to “deep” and saves the copy.

Step 10: And then click on the next button, and copy that file and then paste it to its original location, i.e C:\Windows\System32\Drivers\etc

Step 11: When you paste the file, a new dialogue box appears on your screen which asked if you want to overwrite the file.

Step 12: You have to choose to Replace the file in the destination from the three options in the box as displayed below in the screenshot.

Step 13:  Windows will now ask for Administrator permissions, you just have to Click on Continue button.

Step 14: Once you click on continue the original hosts are successfully replaced by new Hosts file, and now if you ping “deep” you will get the corresponding IP address.

As when you are done with all steps your host name is edited. These are the simple steps which you have to follow to edit the hostname in Windows 10.

Steps to Check How the Hosts File Works

Hosts files are the text files that contain lines of text that are made of IP addresses followed by one or more hostnames. Each field is separated by blanks or tabulation characters. These are the steps you must have to follow to know how host files work in your windows 10.

Step 1. HOSTS file are used to translate a host name of a computer called “print server” into the IP address of 192.168.0.172, you would add this line:

192.168.0.172 print server

Step 2. Add more than one hostname to the same IP address. For instance, if the computer called “print server” also acts as a scanner called “scan server”, you could use this line:

192.168.0.172 print server scan server

Step 3. If you enter the word either “print server” or “scan server”, you would get to the same IP address

Step 4. the HOSTS file can also translate Fully Qualified Domain Names of computers.

For example, if you wanted to add a manual line to translate an FQDN of a computer called “webserver.domain.com” into the IP address of 9.9.9.9

Note: – This is just an example just to add you to this line.

9.9.9.9 webserver.domain.com

Step 5. When you enter the same command it, your computer will resolve the name to the correct IP address.

Step 6. You can also include comment lines by placing a hash character (#) at the beginning of the line

Step 7. This is how the HOSTS file looks on a Windows 10 Technical Preview build machine

These are steps or the points which you can use to operate your host name.

How to Block website using Hosts File

If you want to block a website inside this file, which you don’t want to be able to browse anymore. This can also be used perfectly to block access to any websites that you don’t want to visit. Sometimes these hosts file can be used by malicious software such as adware, computer viruses, or trojan horses etc. These applications may use it to redirect traffic from the intended destination to sites hosting malicious or unwanted content.

Also Read:

To block a website using the Hosts File, simply add the following entry:

127.0.0.1       blocksite.com

Follow the steps to upgrade, lock and edit the hostname. Once the process is complete, make sure to check all steps with the help of screenshot available just below that particular step.

This wraps up the article I hope these methods help you a lot to upgrade, lock, block and edit the hostname in Windows 10. If you liked the article then please share it on social media. And if you want to ask any question or you want to suggest any update regarding Windows installation then you are welcome to comment below in the comment section.Your comments and feedback are always valuable for us.

(Visited 26 times, 1 visits today)
Share is Caring...!
This entry was posted in Windows and tagged , . Bookmark the permalink.
Amazon and the Amazon logo are trademarks of Amazon.com, Inc. or its affiliates.
Tuluzz.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for website owners to earn advertising fees by advertising and linking to Amazon(.com, .co.uk, .ca etc) and any other website that may be affiliated with Amazon Service LLC Associates Program.

Leave a Reply