我的Debian Lenny系统中有静态IP,并且通过IP ping到Internet可以正常工作。不幸的是,www.google.com的名称尚未解析。我无法在Linux上安装任何其他软件,因为它无法解析名称。
/ etc / network / interfaces:
# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface uses static address
auto eth0
iface eth0 inet static
address 192.168.1.99
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0
gateway 192.168.1.1
dns-nameservers 8.8.8.8
如何使用标准工具跟踪DNS请求以查找问题?
看来这可能是您的Debian设备上的DNS解析问题。
试试这个:
echo "nameserver 8.8.8.8" > /etc/resolv.conf # create the file and add the statement as first line
echo "nameserver 8.8.4.4" >> /etc/resolv.conf # append to existing file at the end
这应该可以解决您的问题。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句