The best way to edit hosts file on Home windows 11
In Home windows 11, you’ll be able to edit the file “hosts” To manually override the system’s Area Identify System (DNS) settings for a particular Web area (web site) or system linked to a LAN.
Usually, you do not have to fret about manually assigning an IP deal with to a website identify utilizing the Hosts file situated within the C:WindowsSystem32Driversetc
path in Home windows 11. Nevertheless, it may be helpful in lots of situations. For instance, while you need to block sure web sites. Whenever you don’t have a neighborhood DNS server on the community, it’s worthwhile to affiliate an IP deal with with a pc identify or arrange a web site switch to a brand new internet hosting supplier.
Regardless of the cause, Home windows 11 makes it simple to edit the Hosts file utilizing Notepad or some other textual content modifying utility so long as you open the appliance as administrator. In any other case, you won’t be able to edit the file.
On this information, you’ll study the steps to edit Hosts recordsdata on Home windows 11 to map hostnames to IP addresses.
Edit Hosts file on Home windows 11 from Notepad
to edit the file “hosts” On Home windows 11, do the next:
1. Open to start out on Home windows 11.
2. Analysis roadblockNotesProper-click on the primary end result and choose the choice Execute as administrator.
3. Click on file and choose the choice Opens.
4. Go to the situation of the hosts file:
C:WindowsSystem32Driversetc
5. Use the drop down menu subsequent to “File Identify” and choose the choice “all recordsdata”.
6. Choose the file hosts.
7. Click on the button Opens.
8. In a brand new line, enter the IP deal with of the distant server, add at the least one area and ensure the area identify or pc identify to entry the service. for instance, 159.223.126.251 google.com #This PC redirects Google.com to the required IP deal with
.
Fast word: If you wish to add one other entry, use a brand new line and do not use the pound signal (#) as a result of this image is barely used for feedback.
9. (Elective) Enter the next line to dam a particular web site (for instance, Fb):127.0.0.1 fb.com #This PC will block entry to Fb
10. Click on file.
11. Choose the choice Register.
As soon as you’re achieved with the steps, you’ll be able to take a look at the adjustments by opening a command immediate and utilizing the command ping To verify the host might be reached.
If you wish to forestall your pc from accessing sure web sites, you need to use the loopback deal with (127.0.0.1) adopted by the area identify (127.0.0.1 web site.com). Additionally, in case you can modify the “Hosts” file on Home windows 11, it’s since you want administrative permissions.
Edit the hosts file with PowerToys
PowerToys 0.64 and above features a new Hosts File Editor that makes it simple so as to add and take away Hosts file entries on Home windows 11.
To edit Hosts recordsdata utilizing the PowerToys Editor, observe these steps:
1. Open powerwiz.
2. Click on hosts file editor.
3. Within the part “perhaps”click on the choice Launch the hosts file editor.
4. Click on the button Settle for the warning.
5. Click on the button New entry.
6. Verify the IP deal with, hostname, and remark (if essential).
7. Activate the button lively.
8. Click on the button Add.
After finishing the steps, the Hosts file might be saved with the brand new entries and you’ll now be capable to take a look at the brand new configuration. Moreover, within the editor, you’ll be able to allow or disable entries with a single toggle.
Learn additionally: The best way to reset the HOSTS file on Home windows 11