嗯,看到了,貌似nameserver的原因,你试试这样(测试)(server设置为你现在的nameserver): $ nslookup > server 218.85.157.99 Default server: 8.8.8.8 Address: 8.8.8.8#53 > www.baidu.com
$ nslookup > server 218.85.157.99 Default server: 8.8.8.8 Address: 8.8.8.8#53 > www.baidu.com 测试下baidu和其他域名, 如果不能解析的话就说明是你nameserver的原因,那就将resolv.conf的nameserver改为8.8.8.8; 如果正常解析的话,额,其他原因吧。 在 2013年10月31日下午5:05,qspy wang <qspy2...@gmail.com>写道: > $ cat /etc/resolv.conf > nameserver 218.85.152.99 > nameserver 218.85.157.99 > $ nslookup > > server 8.8.8.8 > Default server: 8.8.8.8 > Address: 8.8.8.8#53 > > www.baidu.com > Server: 8.8.8.8 > Address: 8.8.8.8#53 > > Non-authoritative answer: > www.baidu.com canonical name = www.a.shifen.com. > Name: www.a.shifen.com > Address: 115.239.210.27 > Name: www.a.shifen.com > Address: 115.239.210.26 > > > > > > 在 2013年10月31日下午5:02,朴三世 <hueidou...@gmail.com>写道: > > 试着贴下,这两个命令的输出: >> $ cat /etc/resolv.conf >> $ nslookup >> > server 8.8.8.8 >> Default server: 8.8.8.8 >> Address: 8.8.8.8#53 >> > www.baidu.com >> Server: 8.8.8.8 >> Address: 8.8.8.8#53 >> >> Non-authoritative answer: >> www.baidu.com canonical name = www.a.shifen.com. >> Name: www.a.shifen.com >> Address: 220.181.112.143 >> Name: www.a.shifen.com >> Address: 220.181.111.148 >> >> >> >> 在 2013年10月31日下午4:55,qspy wang <qspy2...@gmail.com>写道: >> >> env | grep -i proxy >>> 没有任何信息,我没有设置全局代理的 >>> >>> >>> 在 2013年10月31日下午4:51,Shell Xu <shell909...@gmail.com>写道: >>> >>> 看env | grep -i proxy呢? >>>> >>>> >>>> 在 2013年10月31日下午2:29,choury <zhou...@choury.com>写道: >>>> >>>>> 怎么这么诡异,host明明已经解析出ip了啊 >>>>> >>>>> 你电脑上有几块网卡啊? >>>>> >>>>> 于 2013年10月31日 14:25, qspy wang 写道: >>>>> >>>>> 从来没有弄过 apt 代理 >>>>> wget 刚试了下,不行 >>>>> >>>>> $ wget http://wwww.236.xdowns.com/uploadFile/2007-4/wget.rar >>>>> --2013-10-31 14:24:58-- >>>>> http://wwww.236.xdowns.com/uploadFile/2007-4/wget.rar >>>>> 正在解析主机 wwww.236.xdowns.com (wwww.236.xdowns.com)... 失败:未知的名称或服务。 >>>>> wget: 无法解析主机地址 “wwww.236.xdowns.com” >>>>> >>>>> >>>>> >>>>> 在 2013年10月31日下午2:21,choury <zhou...@choury.com>写 道: >>>>> >>>>>> 你apt有设过代理吗? >>>>>> 直接用wget能下�d到东西吗? >>>>>> >>>>>> >>>>>> 于 2013年10月31日 14:16, qspy wang 写道: >>>>>> >>>>>> 我有使用 goagent , 但只在 chrome 上设置了; firefox 其实也不是完全不能上网,直接输入 IP >>>>>> 地址还是可以联网的,但如果输入域名如 www.baidu.com 这样的就不行。 >>>>>> 邮件不能正常收发 >>>>>> 但我有用 virtualbox 虚拟了一个 xp 系统,使用的是 NAT 的连接方式,在虚拟的xp系统中却是可以正常上网的 >>>>>> >>>>>> 这样是代理的问题吗? >>>>>> >>>>>> >>>>>> 在 2013年10月31日下午2:11,choury <zhou...@choury.com>写 道: >>>>>> >>>>>>> 邮件可以正常收发? >>>>>>> 你有没有设代理? >>>>>>> >>>>>>> >>>>>>> 于 2013年10月31日 14:07, qspy wang 写道: >>>>>>> >>>>>>> $ host ftp.us.debian.org >>>>>>> ftp.us.debian.org has address 128.61.240.89 >>>>>>> ftp.us.debian.org has address 128.30.2.36 >>>>>>> ftp.us.debian.org has address 64.50.233.100 >>>>>>> ftp.us.debian.org has address 64.50.236.52 >>>>>>> >>>>>>> >>>>>>> >>>>>>> 2013/10/31 choury <zhou...@choury.com> >>>>>>> >>>>>>>> 你运行一下 "host ftp.us.debian.org" 看看呢 >>>>>>>> >>>>>>>> >>>>>>>> 于 2013年10月31日 14:01, qspy wang 写道: >>>>>>>> >>>>>>>> 本 来好 好 的,今天开机忽然firefox就不能上网了,apt-get 也不能用了,但是 chrome 可以上网,ping >>>>>>>> www.google.com 是 通的,调出 /etc/resolv.conf 中的 dns, 也是可以 ping 得通的。 >>>>>>>> >>>>>>>> 各位可知这是什么问题? >>>>>>>> >>>>>>>> $ sudo apt-get update >>>>>>>> 错误 http://ftp.us.debian.org wheezy Release.gpg >>>>>>>> 无法解析域名“ftp.us.debian.org” >>>>>>>> 错误 http://mirrors.163.com wheezy Release.gpg >>>>>>>> 无法解析域名“mirrors.163.com” >>>>>>>> 错误 http://security.debian.org wheezy/updates Release.gpg >>>>>>>> 无法解析域名“security.debian.org” >>>>>>>> 正在读取软件包列表... 完成 >>>>>>>> W: 无法下载 http://mirrors.163.com/debian/dists/wheezy/Release.gpg 无 >>>>>>>> 法解析域名 “mirrors.163.com” >>>>>>>> >>>>>>>> W: 无法下载 http://security.debian.org/dists/wheezy/updates/Release.gpg 无 >>>>>>>> 法解析域名 “security.debian.org” >>>>>>>> >>>>>>>> W: 无法下载 http://ftp.us.debian.org/debian/dists/wheezy/Release.gpg 无 >>>>>>>> 法解析域名 “ftp.us.debian.org” >>>>>>>> >>>>>>>> >>>>>>>> W: Some index files failed to download. They have been ignored, or >>>>>>>> old ones used instead. >>>>>>>> >>>>>>>> >>>>>>>> $ ping www.google.com >>>>>>>> PING www.google.com (173.194.72.103) 56(84) bytes of data. >>>>>>>> 64 bytes from tf-in-f103.1e100.net (173.194.72.103): icmp_req=2 >>>>>>>> ttl=45 time=75.5 ms >>>>>>>> 64 bytes from tf-in-f103.1e100.net (173.194.72.103): icmp_req=3 >>>>>>>> ttl=45 time=73.9 ms >>>>>>>> 64 bytes from tf-in-f103.1e100.net (173.194.72.103): icmp_req=5 >>>>>>>> ttl=45 time=75.3 ms >>>>>>>> 64 bytes from tf-in-f103.1e100.net (173.194.72.103): icmp_req=6 >>>>>>>> ttl=45 time=74.1 ms >>>>>>>> ^C >>>>>>>> --- www.google.com ping statistics --- >>>>>>>> 6 packets transmitted, 4 received, 33% packet loss, time 5010ms >>>>>>>> rtt min/avg/max/mdev = 73.976/74.753/75.502/0.717 ms >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> $ ping 8.8.8.8 >>>>>>>> PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. >>>>>>>> 64 bytes from 8.8.8.8: icmp_req=2 ttl=42 time=107 ms >>>>>>>> 64 bytes from 8.8.8.8: icmp_req=3 ttl=42 time=108 ms >>>>>>>> 64 bytes from 8.8.8.8: icmp_req=5 ttl=42 time=107 ms >>>>>>>> 64 bytes from 8.8.8.8: icmp_req=6 ttl=42 time=108 ms >>>>>>>> ^C >>>>>>>> --- 8.8.8.8 ping statistics --- >>>>>>>> 6 packets transmitted, 4 received, 33% packet loss, time 5021ms >>>>>>>> rtt min/avg/max/mdev = 107.665/108.182/108.694/0.399 ms >>>>>>>> >>>>>>>> -- >>>>>>>> 致 >>>>>>>> 礼! >>>>>>>> Qspy >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> ------------------------------------------------------------ >>>>>>>> yours >>>>>>>> Choury >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> 致 >>>>>>> 礼! >>>>>>> Qspy >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> ------------------------------------------------------------ >>>>>>> yours >>>>>>> Choury >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> 致 >>>>>> 礼! >>>>>> Qspy >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> ------------------------------------------------------------ >>>>>> yours >>>>>> Choury >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> 致 >>>>> 礼! >>>>> Qspy >>>>> >>>>> >>>>> >>>>> -- >>>>> ------------------------------------------------------------ >>>>> yours >>>>> Choury >>>>> >>>>> >>>> >>>> >>>> -- >>>> 彼��者有�g,而刀刃者�o厚;以�o厚入有�g,恢恢乎其於游刃必有�N地矣。 >>>> blog: http://shell909090.com/blog/ >>>> about.me: http://about.me/shell909090 >>>> >>> >>> >>> >>> -- >>> 致 >>> 礼! >>> Qspy >>> >> >> > > > -- > 致 > 礼! > Qspy >