手动指定域名与IP的关系
修改C:WINDOWSsystem32driversetc的Hosts文件即可
# 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
打开文件可以看到如上内容,localhost指向的就是本机。
我们在下面加一行
202.108.22.43 b
现在访问http://b就到Baidu了,挺方便吧 :)


QQ游戏 on 星期一, 4th 八 2008 06:54
对域名绑定不太熟悉
不过一直用智能的DNS,操作还算简单!
回复
山寨货网 on 星期一, 25th 八 2008 16:09
貌似是改动DNS吧?我不懂,呵呵。
回复