上一篇: 新网遭黑客攻击 约30%中国网站访问瘫痪
由于这两天新网的DNS服务器受攻击,导致断断续续不能访问自己的网站,于是改了一下自己本地的系统配置,做了一下本地域名解析,哈哈,不过这样做只方便自己上而已,具体操作方法如下:
1.打开C:\WINDOWS\system32\drivers\etc目录
2.找到host文件,用记事本打开
3.添加“空间IP 域名”,如下(红色字体为自行添加的本地域名解析)
# 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
127.0.0.1 localhost
空间IP 域名
1.打开C:\WINDOWS\system32\drivers\etc目录
2.找到host文件,用记事本打开
3.添加“空间IP 域名”,如下(红色字体为自行添加的本地域名解析)
# 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
127.0.0.1 localhost
空间IP 域名
别人肯定还是依旧不能访问的!
===================
阳晨的博客
www.webhot.com.cn