2023年12月13日发(作者:)

Win10hosts文件的默认内容

最近搞了个openWrt的路由器,可以配置酸酸乳,配置好之后,发现没法正常的使用 Google,一想,可能是因为很早以前修改了系统的

hosts 文件,(当时这是使用 Google 的一种方法,后来用了小飞机啥的)。然后我去网上找了一段 hosts 的默认内容:

hosts文件路径:C:WINDOWSsystem32driversetchosts

以管理员身份运行记事本,再用记事本打开hosts文件才能保存。

我一般都用 notepad++ 编辑。

# Copyright (c) 1993-2009 Microsoft Corp.

#

# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.

#

# This file contains the mappings of IP addresses to host names. Each

# entry should be kept on an individual line. The IP address should

# be placed in the first column followed by the corresponding host name.

# The IP address and the host name should be separated by at least one

# space.

#

# Additionally, comments (such as these) may be inserted on individual

# lines or following the machine name denoted by a '#' symbol.

#

# For example:

#

# 102.54.94.97 # source server

# 38.25.63.10 # x client host

# localhost name resolution is handled within DNS itself.

# 127.0.0.1 localhost

# ::1 localhost

替换之后就可以自由的遨游了.