How to reset the hosts file back to the default

     

What"s the Hosts file

The Hosts tệp tin is used by the operating system to maps human-friendly hostnames to lớn numerical internet Protocol (IP) addresses which identify and locate a host in an IP network. The hosts tệp tin is one of several system resources that address network nodes in a computer network & is a common part of an operating system"s IP implementation.

Bạn đang xem: How to reset the hosts file back to the default

The Hosts tệp tin contains lines of text consisting of an IP address in the first text field followed by one or more host names. Each field is separated by white space (Tabs are often preferred for historical reasons, but spaces are also used). Bình luận lines may be included, & they are indicated by a hash character (#) in the first position of such lines. Entirely blank lines in the tệp tin are ignored.

If the Hosts file is changed from default, resetting it can help resolve some connectivity issues.

Resolution

To reset the Hosts file back khổng lồ the default, follow these steps according to your operating system:


Windows 11

To reset the Hosts tệp tin back lớn the default, follow these steps:

1. Xuất hiện Notepad. To vày this, search for “Notepad”, and then tap or click the Notepad icon.

2. Copy the following text, & then paste the text into the file:

3. On the File menu, select Save as, type "hosts" in the File name box (as displayed in the following image), và then save the file to the desktop.

4. Close Notepad.

5. Search for %WinDir%System32DriversEtc, and then select the File folder icon.

6. Tap & hold or right-click the Hosts file, select Rename, & then rename the file as "Hosts.old".

7. Copy or move the Hosts file that you created in step 3 from the desktop to the %WinDir%System32DriversEtc folder. If you are prompted to lớn enter an administrator password, select Continue.


To reset the Hosts tệp tin back to lớn the default, follow these steps:

1. Mở cửa Notepad. To do this, search for “Notepad” using Cortana, and then tap or click the Notepad icon.

2. Copy the following text, & then paste the text into the file:

3. On the File menu, select Save as, type "hosts" in the File name box (as displayed in the following image), and then save the tệp tin to the desktop.

4. Close Notepad.

5. Tìm kiếm for %WinDir%System32DriversEtc using Cortana, & then select the File folder icon.

6. Tap and hold or right-click the Hosts file, select Rename, & then rename the file as "Hosts.old".

Xem thêm: Phần Mềm Chỉnh Sửa Video Cho Macbook Đơn Giản Không Cần Cài Thêm Phần Mềm

7. Copy or move the Hosts file that you created in step 3 from the desktop to lớn the %WinDir%System32DriversEtc folder. If you are prompted khổng lồ enter an administrator password, select Continue.


To reset the Hosts file back to lớn the default, follow these steps:

1. Mở cửa Notepad. To bởi vì this, swipe in from the right edge of the screen, tap Search, type Notepad, and then tap the Notepad icon. Or, if you are using a mouse, point lớn the upper-right corner of the screen, move the mouse pointer down, click Search, type Notepad, and then click Notepad.

2. Copy the following text, và then paste the text into the file:

3. On the File menu, select Save as, type "hosts" in the File name box (as displayed in the following image), và then save the file to the desktop.

*

4. Close Notepad.

5. Open the %WinDir%System32DriversEtc folder. To bởi vì this, follow these steps:

a. Swipe in from the right edge of the screen, tap Search, type run, & then tap the Run icon. Or, if you are using a mouse, point to lớn the upper-right corner of the screen, move the mouse pointer down, select Search, type run, & then select the Run icon.

b. Type %WinDir%System32DriversEtc in the Open box, and then select OK.

6. Select the Hosts file, select Rename, và then rename the file as "Hosts.old".

7. Copy or move the Hosts file that you created in step 3 lớn the %WinDir%System32DriversEtc folder. If you are prompted lớn enter an administrator password, tap or click Continue.


To reset the Hosts file back lớn the default yourself, follow these steps:

Click Start, click Run, type Notepad, & then click OK.

Look for your version of Windows from the menu below & then copy the following text for that version of Windows, và then paste it into Notepad:

For Windows 7:

For Windows Vista or for Windows server 2008:

For Windows XP or for Windows vps 2003:

3. On the File menu, select Save as, type "hosts" in the File name box, and then save the tệp tin to the desktop.

*

4. Select Start Run, type %WinDir%System32DriversEtc, và then select OK.

5. Select the Hosts file, and rename it "Hosts.old."

6. Copy or move the Hosts file that you created in step 3 khổng lồ the %WinDir%System32DriversEtc folder. If you are prompted lớn enter an administrator password, select Continue.


More Information

jdomain.vn for Windows XP has ended

jdomain.vn ended jdomain.vn for Windows XP on April 8, 2014. This change has affected your software updates và security options. Learn what this means for you và how to stay protected.

jdomain.vn for Windows hệ thống 2003 ended on July 14, 2015

jdomain.vn ended tư vấn for Windows vps 2003 on July 14, 2015. This change has affected your software updates và security options. Learn what this means for you and how to stay protected.


Chuyên mục: Domain Hosting