Hosts file in Windows:
windows/system32
in Linux
/etc
修改 hosts 可以间接达到控制网络的目的。
比如把常用的上瘾的网站设为某一个主页的ip。
应该不会抓狂吧。^_^
tracert www.sjtu.edu.cn
可以知道某个url的IP
C:\Documents and Settings\kevin>nslookup 202.120.2.102
Server: dns.sjtu.edu.cn
Address: 202.120.2.101
Name: www.sjtu.edu.cn
Address: 202.120.2.102
C:\Documents and Settings\kevin>nslookup www.sjtu.edu.cn
Server: dns.sjtu.edu.cn
Address: 202.120.2.101
Name: www.sjtu.edu.cn
Address: 202.120.2.102
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment