华为鸿蒙系统|如果打不开网页怎么办可能是dns解析不正常或是host文件被修改

华为鸿蒙系统|如果打不开网页怎么办可能是dns解析不正常或是host文件被修改

文章图片



如果打不开网页怎么办一般情况可能是dns解析不正常只要在网上邻居里把首选dns里写上固定我这个是电信默认的 。 具体什么城市默认的dns可以自己网上搜索 。

如果修改了dns还是不能上网 , 可能是host文件被污染了 , 需要还原 。 找到host替换下面的代码 , 保存 。
找到指定路径下的host文件WNDOWS\\system32\\drivers\\etc看host文件是否有被更改
==========================================以下为host原文件
# Copyright (c) 1993-1999 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
【华为鸿蒙系统|如果打不开网页怎么办可能是dns解析不正常或是host文件被修改】127.0.0.1Localhost