如何做本地域名解析?

[不指定 2006/09/22 15:34 | by Totti ]
| |
由于这两天新网的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 域名
个人 | 评论(5) | 引用(0) | 阅读(7650)
ds Email Homepage
2006/12/18 14:27
zanunhappysmilefear
2006/10/15 23:42
谢谢楼主分享
xiaoyu Email Homepage
2006/09/28 22:52
那用我的DNS  哈哈.... love
xiaoyu Email Homepage
2006/09/28 22:52
那用我的DNS  哈哈.... love
xiaoyu Email Homepage
2006/09/28 22:52
那用我的DNS  哈哈.... love
LEMONed Homepage
2006/09/24 21:33
国产的东西就是垃圾。。。
阳晨的博客 Homepage
2006/09/23 18:30
这个方法最多也只能自己访问吧!
别人肯定还是依旧不能访问的!
===================
阳晨的博客
www.webhot.com.cn
totti 回复于 2006/09/23 18:35
我知道呀,哈哈
分页: 1/1 第一页 1 最后页
发表评论
昵称

网址

电邮
打开HTML 打开UBB 表情 打开表情 隐藏 记住我 [注册]