linux – Wget有效,Ping没有

前端之家收集整理的这篇文章主要介绍了linux – Wget有效,Ping没有前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
Virtuozzo虚拟化Debian 4有一些异常(我知道,我会尽快升级这个,但有依赖).我们在这个网站上运行了一些网站.一个观点几天前,exmi4无法向某些人发送邮件.我将使用live.com作为exampledomain!

所以这些人中的一些人收到了邮件而一些人没收到邮件.
有些邮件被困在队列中,2天后他们就出去了!!
我的Nagios从未出现过互联网连接或磁盘空间问题

现在我想安装“挖掘”以了解他是如何解决dns请求的.而这个Debian告诉我他不知道挖…

简而言之,Debian能够下载具有确切IP甚至wget live.com的网站,但它无法ping通live.com.

我99%肯定网络是正确的,路由也是!

以下是我的一些例子:

  1. wget live.com

下载网站

  1. ping live.com
  2. ping http://www.live.com
  3. ping http://live.com

收益:

ping: unknown host live.com

编辑:

我现在使用heise.de不再是live.com了.
我发现我可以使用它的IP地址ping heise.de服务器.

  1. myserver:~# ping 193.99.144.85
  2. PING 193.99.144.85 (193.99.144.85) 56(84) bytes of data.
  3. 64 bytes from 193.99.144.85: icmp_seq=1 ttl=248 time=12.7 ms
  4. 64 bytes from 193.99.144.85: icmp_seq=2 ttl=248 time=12.6 ms
  5. 64 bytes from 193.99.144.85: icmp_seq=3 ttl=248 time=12.9 ms
  6. 64 bytes from 193.99.144.85: icmp_seq=4 ttl=248 time=13.1 ms
  7. 64 bytes from 193.99.144.85: icmp_seq=5 ttl=248 time=13.1 ms
  8.  
  9. --- 193.99.144.85 ping statistics ---
  10. 5 packets transmitted,5 received,0% packet loss,time 4001ms
  11. rtt min/avg/max/mdev = 12.671/12.924/13.163/0.238 ms

编辑2:

  1. myserver:/etc/apt# dig heise.de
  2.  
  3. ; <<>> DiG 9.3.4-P1.2 <<>> heise.de
  4. ;; global options: printcmd
  5. ;; Got answer:
  6. ;; ->>HEADER<<- opcode: QUERY,status: NOERROR,id: 40551
  7. ;; flags: qr rd ra; QUERY: 1,ANSWER: 1,AUTHORITY: 5,ADDITIONAL: 3
  8.  
  9. ;; QUESTION SECTION:
  10. ;heise.de. IN A
  11.  
  12. ;; ANSWER SECTION:
  13. heise.de. 2266 IN A 193.99.144.80
  14.  
  15. ;; AUTHORITY SECTION:
  16. heise.de. 1622 IN NS ns.pop-hannover.de.
  17. heise.de. 1622 IN NS ns.s.plusline.de.
  18. heise.de. 1622 IN NS ns.plusline.de.
  19. heise.de. 1622 IN NS ns2.pop-hannover.net.
  20. heise.de. 1622 IN NS ns.heise.de.
  21.  
  22. ;; ADDITIONAL SECTION:
  23. ns.plusline.de. 265 IN A 212.19.48.14
  24. ns.pop-hannover.de. 5113 IN A 193.98.1.200
  25. ns2.pop-hannover.net. 15150 IN A 62.48.67.66
  26.  
  27. ;; Query time: 2 msec
  28. ;; SERVER: 193.200.112.80#53(193.200.112.80)
  29. ;; WHEN: Tue Oct 9 13:03:50 2012
  30. ;; MSG SIZE rcvd: 216

解决方法

ping: unknown host live.com

未知主机错误是指名称到IP地址解析的问题. AFAICT,只要在/etc/resolv.conf中使用192.200.113.30和192.200.112.80,就没有问题…

  1. [mpenning@tsunami tests]$dig +short @193.200.113.30 live.com
  2. 65.55.206.154
  3. [mpenning@tsunami tests]$dig +short @193.200.112.80 live.com
  4. 65.55.206.154
  5. [mpenning@tsunami tests]$

也就是说,您所看到的可能与尝试使用ping http://live.com有关.不要在ping上使用http://前缀…这只对Web浏览器有意义.

仅供参考,live.com不会返回ping,所以你不应该指望任何返回…他们应该全部超时…

  1. [mpenning@tsunami tests]$ping -w 1 live.com
  2. PING live.com (65.55.206.154) 56(84) bytes of data.
  3.  
  4. --- live.com ping statistics ---
  5. 1 packets transmitted,0 received,100% packet loss,time 0ms
  6.  
  7. [mpenning@tsunami tests]$

编辑

我在ping heise.de时得到这个…

  1. [mpenning@tsunami tests]$ping heise.de
  2. PING heise.de (193.99.144.80) 56(84) bytes of data.
  3. 64 bytes from redirector.heise.de (193.99.144.80): icmp_req=1 ttl=241 time=144 ms
  4. 64 bytes from redirector.heise.de (193.99.144.80): icmp_req=2 ttl=241 time=144 ms
  5. 64 bytes from redirector.heise.de (193.99.144.80): icmp_req=3 ttl=241 time=144 ms
  6. 64 bytes from redirector.heise.de (193.99.144.80): icmp_req=4 ttl=241 time=143 ms
  7. ^C
  8. --- heise.de ping statistics ---
  9. 4 packets transmitted,4 received,time 3002ms
  10. rtt min/avg/max/mdev = 143.734/144.344/144.730/0.598 ms
  11. [mpenning@tsunami tests]$

猜你在找的Linux相关文章