Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

Win10 原版 HOSTS 檔案標準內容:還原預設解決修改後無法上網

編輯:關於 Windows

Win10 修改 hosts 檔案翻牆/屏蔽網址後導致瀏覽異常?將檔案還原為原版標準內容即可解決。以下為 Win10 官方預設 hosts 完整內容。

原版標準內容

  1. 用記事本開啟 C:\Windows\System32\drivers\etc\hosts (需管理員權限)。
  2. 清空全部內容,貼入以下標準內容:
# 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

原版 hosts 內容

  1. 存檔 (Ctrl+S) → 關閉記事本。

注意:修改 hosts 需管理員權限,建議以系統管理員身分開啟記事本再開啟檔案編輯,或複製到桌面編輯存檔後覆蓋回原位置。

相關閱讀

還原標準內容後,DNS 解析即恢復系統預設行為,所有網頁正常存取。

Copyright © Windows教程網 All Rights Reserved