How to create a new host file on Windows

File host is an important system file in Windows, if unfortunately in the "tinkering" process, if you accidentally delete it, it is almost impossible, there is no way to recover the default information as the original. . So what should I do in this case? Only how to create a new host file then copy the default information. Please apply the host file procedure we share below to retrieve the host file on your computer.

Instructions for creating new host files on the computer

Step 1: Open the Run dialog box (or use Windows - R key combination), then enter notepad to open Notepad.

How to create a new host file on Windows Picture 1

Step 2: Copy the entire contents of the host file at the bottom.
 # Copyright (c) 1993-1999 Microsoft Corp. 
#
# Này là một tập tin HOSTS được dùng bởi Microsoft TCP / IP cho Windows.
#
Tập tin này chứa mappings của IP địa chỉ đến tên tên máy. Each
Số nhập nên được giữ lại ở một dòng này. Cần địa chỉ IP
# được đặt trong theo thứ tự đầu tiên trước theo tên host tương ứng.
# Tên địa chỉ IP và tên máy nên được gỡ bỏ ở ít nhất một
# space.
#
Không thêm được, ý chú ý (như như này) có thể được inserted on nhân
# lines or theo tên máy này được gỡ bỏ bởi một '#' ký hiệu.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
Step 3: Paste into the notepad file.
How to create a new host file on Windows Picture 2

Step 4: Save the file with the name hosts.txt.

How to create a new host file on Windows Picture 3
Step 5: Copy this hosts.txt file to the C: WindowsSystem32driversetc path

Step 6: Change the file name of hosts.txt to hosts (remove the .txt extension).

How to create a new host file on Windows Picture 4
So, with just six simple steps above, you can restore the new host file as originally due to a day when it is not beautiful. Save the article for use when you need it or share this cool tip with friends when you encounter a similar situation.

Hope the article will be helpful to you, wish you success!

See more:

  1. How to increase VRAM in Windows 10
5 ★ | 1 Vote

May be interested

  • What is the difference between Proxy and VPN?Photo of What is the difference between Proxy and VPN?
    a proxy connects you to a remote computer and the vpn also connects you to a remote computer, so are they one? this is incorrect, let's look at the differences between them and when to use proxy and vpn.
  • Quick handling of iPhone screen error is not sensitive and poorPhoto of Quick handling of iPhone screen error is not sensitive and poor
    is your iphone touch screen in a state of insensitivity, poor touch? don't rush to bring the repair center, you can fix this error at home simply without resorting to professional phone repairers.
  • What is IPSW file?Photo of What is IPSW file?
    a file with ipsw extension is an apple device software update file that is used on iphone, ipod touch, ipad and apple tv devices. this is an archive file format that stores encrypted dmg files and other files like plists, bbfws and im4p.
  • What is an IP address?Photo of What is an IP address?
    ip address (internet protocol ip) is the number of formats for a network hardware, devices that use ip addresses to communicate with each other over an ip-based network like the internet.
  • Learn SSID and wireless networkPhoto of Learn SSID and wireless network
    the ssid (short for service set identifier) ​​is the primary name associated with 802.11 wireless lan (wlan) including home and public hotspots. client devices use this name to identify and connect to a wireless network.
  • How to get the scratched card back, lost the number of network operatorsPhoto of How to get the scratched card back, lost the number of network operators
    with a few simple steps, you can easily retrieve the scratched card number.