FreeBSD# ping www.leawo.cnping: cannot resolve www.leawo.cn: No address associated with name 不能解析域名
FreeBSD# ping 64.79.84.130PING 64.79.84.130 (64.79.84.130): 56 data bytes64 bytes from 64.79.84.130: icmp_seq=0 ttl=46 time=237.031 ms64 bytes from 64.79.84.130: icmp_seq=1 ttl=46 time=235.067 ms64 bytes from 64.79.84.130: icmp_seq=2 ttl=46 time=255.089 ms 但能ping通外网服务器,说明网络是通的,只是不能解析
解决办法:
FreeBSD# vi /etc/resolv.conf 在本文件中增加DNS
nameserver 8.8.8.8
nameserver 208.67.220.220
:wq
退出保存既时生效
转载于:https://blog.51cto.com/4883365/839743