LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1254|回复: 6

请问如何解析一个网址为ip?

[复制链接]
发表于 2005-4-26 11:27:16 | 显示全部楼层 |阅读模式
比如已经知道网址:
http://www.163.com
那么怎么通过这个地址,知道他的ip是多少?
发表于 2005-4-26 11:36:40 | 显示全部楼层
$ ping www.163.com
PING www.cache.split.netease.com (220.181.30.14) 56(84) bytes of data.
64 bytes from 220.181.30.14: icmp_seq=1 ttl=51 time=66.6 ms
64 bytes from 220.181.30.14: icmp_seq=2 ttl=52 time=62.2 ms
64 bytes from 220.181.30.14: icmp_seq=3 ttl=52 time=62.4 ms
64 bytes from 220.181.30.14: icmp_seq=4 ttl=51 time=66.6 ms
64 bytes from 220.181.30.14: icmp_seq=5 ttl=52 time=62.7 ms
64 bytes from 220.181.30.14: icmp_seq=6 ttl=51 time=67.0 ms
^C

看到了吧:220.181.30.14
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-26 11:45:55 | 显示全部楼层
Post by noright
$ ping www.163.com
PING www.cache.split.netease.com (220.181.30.14) 56(84) bytes of data.
64 bytes from 220.181.30.14: icmp_seq=1 ttl=51 time=66.6 ms
64 bytes from 220.181.30.14: icmp_seq=2 ttl=52 time=62.2 ms
64 bytes from 220.181.30.14: icmp_seq=3 ttl=52 time=62.4 ms
64 bytes from 220.181.30.14: icmp_seq=4 ttl=51 time=66.6 ms
64 bytes from 220.181.30.14: icmp_seq=5 ttl=52 time=62.7 ms
64 bytes from 220.181.30.14: icmp_seq=6 ttl=51 time=67.0 ms
^C

看到了吧:220.181.30.14


thanx!
回复 支持 反对

使用道具 举报

发表于 2005-4-26 11:51:16 | 显示全部楼层
dig和nslookup
回复 支持 反对

使用道具 举报

发表于 2005-4-26 13:08:55 | 显示全部楼层
Post by troll
dig和nslookup


thanks
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-4-26 13:41:41 | 显示全部楼层
Post by troll
dig和nslookup

正解。谢谢!
回复 支持 反对

使用道具 举报

发表于 2005-4-26 23:29:46 | 显示全部楼层
ping , host , nslookup ,dig , doc 都可以吧。

ping在局域网中有时不能ping外网的机器。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表