How to edit the hosts file in windows 10

     

Hosts files are the files that maps the actual hostnames of the systems khổng lồ respective IP addresses. It is a normal text tệp tin containing the mapping of the before-mentioned items. If the hosts files are missing from your computer and you are trying to manually restore the tệp tin on your own, you are at the right place. We are going khổng lồ showcase how lớn create the host tệp tin step by step.

Bạn đang xem: How to edit the hosts file in windows 10


How to create hosts tệp tin manually in Windows 10

Follow these steps lớn create the hosts tệp tin manually on your own.

1. At first, you need to lớn type “Notepad” in the tìm kiếm box.

2. After that, right-click on the “Notepad” and then click on “Run as administrator“.

*

3. Once the Notepad screen opens up, copy-paste this code on the blank Notepad page.

4. Once you have pasted the text, click on the “File” on the menu-bar & then click on “Save as“.

*

5. Choose a location lớn save the tệp tin (preferably, on your desktop).


6. Name the tệp tin as “hosts.file“.

7. Click on “Save As“.

In Save as Type , Just choose All files as option.

*

Once you have saved the host file, you can close the Notepad window.

8. Go to lớn the location where you have just saved the file.

9. Right-click on the “hosts.file” and click on “Rename“.

*

10. Name the file as “hosts“. (Just remove .file from the end)

You may see a prompt warning about the tệp tin type change, just click on ‘Yes’ khổng lồ confirm the change.

Xem thêm: 1️⃣ Dòng Máu Phượng Hoàng


*

11. After that, select the file and right-click and, click on the “Cut” to cut it.

*

12. Go to this thư mục location on your system –

C:WindowsSystem32driversetc

13. Paste the ‘hosts’ file here and your task is done.

Click Yes the prompt to lớn replace the file.

*

That’s it! You have successfully restored the host tệp tin on your computer.

You may restart your computer once lớn let this change take effect.

Alternate method

If the above steps are looking too much for you, don’t worry! We have something stored just for you. Just download this file và paste it in the right directory to lớn achieve the same results.

1. Simply, click on this link.

2. Then, click on “Download” to download the hosts.zip file on your system.

*

3. After that, unzip the ‘hosts.zip‘ file in a location of your choice.

*

4. Go lớn the location where you have extracted the file.

5. Copy the ‘hosts’ tệp tin from the location.


*

6. Go khổng lồ this thư mục location on your system –

C:WindowsSystem32driversetc

7. Paste the ‘hosts’ file in the folder.

This should vày the job. This is the way khổng lồ restore the host tệp tin on your computer.