我的电脑里的hosts文件被我删除了怎么办。

如题所述

网上下载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
将修改后的hosts文件放入c:\windows\system32\drivers\etc替换以前的hosts文件.追问

hosts文件删除了有什么影响吗

我建了个记事本文件把内容复制进去,可以吗

追答

你可以试一下

温馨提示:答案为网友推荐,仅供参考

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网