Questions tagged «resolve»

5
WGET无法解析主机
我在运行Debian 5.0的同一子网上有2台计算机。它们使用相同的DNS(/etc/resolv.conf),路由到相同的网关(#route),并且具有相同的iptables设置(#iptables -L)。我可以从这两个ping通到IP地址和主机名。我可以运行#host www.google.com并在两者上获得相同的结果。但是问题是,在其中之一上,我无法理解或卷曲。 因此,在机器1上一切正常,但是在机器2上(与机器1设置相同),我无法获取或卷曲。 我得到的错误是: # wget google.com --2009-10-20 16:38:36-- http://google.com/ Resolving google.com... failed: Name or service not known. wget: unable to resolve host address `google.com' 但是在机器1上,wget或curl并返回并没有问题: # wget google.com --2009-10-20 16:43:55-- http://google.com/ Resolving google.com... 74.125.53.100, 74.125.45.100, 74.125.67.100 Connecting to google.com|74.125.53.100|:80... connected. HTTP request sent, awaiting response... 301 Moved …

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.