如果有ubuntu ping不通百度域名但是可以ping的通百度ip地址时:
需要修改域名配置文件
sudo gedit /etc/resolv.conf 修改配置文件最后添加 nameserver 114.114.114.114 nameserver 8.8.8.8 重启网络 Ubuntu14: sudo ifdown eth0 sudo ifup eth0 修改后可能会变回来,需要检查