windows Hosts默认方法
方法一:
https://support.microsoft.com/zh-cn/topic/%E5%A6%82%E4%BD%95%E5%B0%86%E4%B8%BB%E6%9C%BA%E6%96%87%E4%BB%B6%E9%87%8D%E7%BD%AE%E5%9B%9E%E9%BB%98%E8%AE%A4%E5%80%BC-c2a43f9d-e176-c6f3-e4ef-3500277a6dae
方法二:
1、Win+s搜索cmd,右键以管理员身份打开
2、复制>粘贴>回车
for /f %P in ('dir %windir%\WinSxS\hosts /b /s') do copy %P %windir%\System32\drivers\etc & echo %P & Notepad %P
hosts默认如下:
# 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 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost