How to Edit the Hosts File That Require Admin Privileges

The DNS changes the domain names into IP by using the Hosts file. This will permit you to register a particular domain name with the selected IP address. The changes you will do will only apply to the computer. You can use this IP address to redirect one of the sites and create a custom link to use it on your IP address. You have to edit the Hosts file that requires admin privileges by following the instructions mentioned below.

                            How to edit hosts file

Here’s How to Edit the Hosts File That Requires Admin Privileges


Run Notepad as an Administrator

• Click on the Windows button so that the start menu gets open on the screen.

• Enter Notepad into the search bar. You will get its symbol at the upper side below the best results menu.

• You need to right-click on the Notepad.

• Choose the Run as administrator option.

• After opening the Notepad, you need to choose the file.

• After that, click on the Open button.

• Click C:\Windows\System32\drivers\etc.

• You need to move from the Text Documents to All files option.

• Select hosts by going to the pull-down list.

• Type the changes you have made, and you need to save those changes.

Go Through the Read-Only Host File in Notepad

• You need to go to C:\Windows\System32\drivers\etc.

• Search for the hosts’ file.

• You have right -click on the host file.

• Open the Properties option.

• Next, to the end of the screen, you will get the attributes option and unselect the Read-only option given near to it.

• Click on the Apply option for saving the changes you have done.

• Press on the Ok button to verify the changes you have made.

Transfer the Hosts File to Any Other Folder

• To edit the hosts file that requires admin privileges, you need to press on the C:\Windows\System32\drivers\etc.

• Now, you have to move the hosts’ file to any other folder such as Program Files.

• Go to the hosts’ file by going to the Programs Files through the text editor for example Notepad.

• Now you can edit hosts file that requires admin privileges.

• After that, the hosts file to go back to the C:\Windows\System32\drivers\etc folder.

Modify your Host File

• Go to C:\Windows\System32\drivers\etc.

• Search for the hosts’ file.

• After getting it, you need to right-click on the hosts’ file.

• Choose the Properties option.

• After that, go to the Security menu.

• Click on the Edit button located in the center of the display.

• You will get the menu list of all the available users.

• Find the username and check whether you have full access.

• If you do not have, press on the Add option.

• Enter the username given below the name of the things so that you can choose them.

• Press on the Check Names option.

• Press on the OK button.

• Now, the username will star showing on the menu list.

• Press on the username.

• Allow it Full Control.

• Press on the Apply option for saving the changes you have made.

• After that, press on the OK button.

Comments are closed